This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: braces warning in DJGPP
- To: help-gcc at gnu dot org
- Subject: Re: braces warning in DJGPP
- From: therapy at ripco dot com (Blackbear)
- Date: 6 Dec 1999 14:00:22 GMT
- Followup-To: comp.os.msdos.djgpp,gnu.gcc.help,gnu.g++.help
- Newsgroups: comp.os.msdos.djgpp,gnu.gcc.help,gnu.g++.help
- Organization: None
- References: <82er4c$b06$1@gail.ripco.com>
- Xref: wodc7nx0 comp.os.msdos.djgpp:7810 gnu.gcc.help:2086 gnu.g++.help:1128
I've solved the problem. I looked at the compiler
souce to find "-Wno-missing-braces".
Blackbear (therapy@ripco.com) wrote:
: Hello everyone.
: I like to compile using the `-Wall' flag so that
: the compiler can catch possible errors for me.
: For warnings that I don't want to see, I then
: put "-Wno-xxxxx" options after "-Wall" on
: the command line -- to turn off those warnings.
: But there is one warning that I can't disable. When I
: create a structure like so:
: struct decoder {
: int value;
: const char * name;
: };
: static struct decoder basic_msgs [] = {
: 1, "first",
: 2, "second",
: 3, "third",
: .
: .
: .
: };
: The compiler issues a warning:
: histbase.m:36: warning: missing braces around initializer
: histbase.m:36: warning: (near initialization for `basic_msgs[0]')