aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <haible@ilog.fr>1998-06-30 02:01:28 +0200
committerJeff Law <law@gcc.gnu.org>1998-06-29 18:01:28 -0600
commitdbde0d5d34fe3211a9bcaabbe81ad7fc804691f8 (patch)
tree56a3f85319e91f4d7cf9bd4f24051e05473bbf7f
parent9ec36da574f8272705a3ead59bbd289f23793429 (diff)
downloadgcc-dbde0d5d34fe3211a9bcaabbe81ad7fc804691f8.zip
gcc-dbde0d5d34fe3211a9bcaabbe81ad7fc804691f8.tar.gz
gcc-dbde0d5d34fe3211a9bcaabbe81ad7fc804691f8.tar.bz2
invoke.texi: Document new implicit structure initialization warning.
* invoke.texi: Document new implicit structure initialization warning. From-SVN: r20810
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/invoke.texi10
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3e71a3b..2db51d3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index 112072d..67347cd 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