invoke.texi: Document new implicit structure initialization warning.
authorBruno Haible <haible@ilog.fr>
Tue, 30 Jun 1998 00:01:28 +0000 (02:01 +0200)
committerJeff Law <law@gcc.gnu.org>
Tue, 30 Jun 1998 00:01:28 +0000 (18:01 -0600)
        * invoke.texi: Document new implicit structure initialization
        warning.

From-SVN: r20810

gcc/ChangeLog
gcc/invoke.texi

index 3e71a3b7017659084b00350afaeaae9c74c873b0..2db51d336bbf859493d0407233333b6388bacd2e 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jun 30 00:56:19 1998  Bruno Haible <haible@ilog.fr>
+
+       * 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
index 112072d37c0580d6ed66018d411f5c2303da8aab..67347cd9cd7757489b20eff6bb6d0bacdaa29be7 100644 (file)
@@ -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