From mboxrd@z Thu Jan 1 00:00:00 1970 From: therapy@ripco.com (Blackbear) To: help-gcc@gnu.org Subject: Re: braces warning in DJGPP Date: Mon, 06 Dec 1999 06:04:00 -0000 Message-id: <82gfhm$5qu$1@gail.ripco.com> References: <82er4c$b06$1@gail.ripco.com> X-SW-Source: 1999-12/msg00075.html 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]') From mboxrd@z Thu Jan 1 00:00:00 1970 From: therapy@ripco.com (Blackbear) To: help-gcc@gnu.org Subject: Re: braces warning in DJGPP Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <82gfhm$5qu$1@gail.ripco.com> References: <82er4c$b06$1@gail.ripco.com> X-SW-Source: 1999-12n/msg00075.html Message-ID: <19991231222400.syTOqWsc7YGaD2YEjI7GO7XYu91PXS8eHcPtY5cd8L4@z> 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]')