invoke.texi: Document new implicit structure initialization warning.

* invoke.texi: Document new implicit structure initialization
        warning.

From-SVN: r20810
This commit is contained in:
Bruno Haible 1998-06-30 02:01:28 +02:00 committed by Jeff Law
parent 9ec36da574
commit dbde0d5d34
2 changed files with 15 additions and 0 deletions

View 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

View 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