From dbde0d5d34fe3211a9bcaabbe81ad7fc804691f8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 30 Jun 1998 02:01:28 +0200 Subject: [PATCH] invoke.texi: Document new implicit structure initialization warning. * invoke.texi: Document new implicit structure initialization warning. From-SVN: r20810 --- gcc/ChangeLog | 5 +++++ gcc/invoke.texi | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e71a3b7017..2db51d336bb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 30 00:56:19 1998 Bruno Haible + + * invoke.texi: Document new implicit structure initialization + warning. + Mon Jun 29 22:12:06 1998 Jeffrey A Law (law@cygnus.com) * Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 for diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 112072d37c0..67347cd9cd7 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -1534,6 +1534,16 @@ struct s @{ int f, g; @}; struct t @{ struct s h; int i; @}; struct t x = @{ 1, 2, 3 @}; @end smallexample + +@item +An aggregate has an initializer which does not initialize all members. +For example, the following code would cause such a warning, because +@code{x.h} would be implicitly initialized to zero: + +@smallexample +struct s @{ int f, g, h; @}; +struct s x = @{ 3, 4 @}; +@end smallexample @end itemize @item -Wtraditional -- 2.30.2