diff options
-rw-r--r-- | lib.c | 2 | ||||
-rw-r--r-- | sparse.1 | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -296,7 +296,7 @@ int Wtransparent_union = 0; int Wtypesign = 0; int Wundef = 0; int Wuninitialized = 1; -int Wuniversal_initializer = 1; +int Wuniversal_initializer = 0; int Wunknown_attribute = 0; int Wvla = 1; @@ -437,11 +437,13 @@ Sparse does not issue these warnings by default. . .TP .B \-Wuniversal\-initializer -Do not suppress warnings about 0 used to initialize a null-pointer -when using '{ 0 }' as initializer. +Do not suppress warnings caused by using '{ 0 }' instead of '{ }' on +aggregate types, ignoring its special status as universal initializer. +The concerned warnings are, for exemple, those trigered by +\fB\-Wdesignated\-init\fR or \fB\-Wnon\-pointer\-null\fR. -Sparse issues these warnings by default. To turn them off, use -\fB\-Wno\-universal\-initializer\fR. +Sparse does not issue these warnings by default, processing '{ 0 }' +the same as '{ }'. . .SH MISC OPTIONS .TP |