delorie.com/archives/browse.cgi | search |
From: | therapy AT ripco DOT com (Blackbear) |
Newsgroups: | comp.os.msdos.djgpp,gnu.gcc.help,gnu.g++.help |
Subject: | Re: braces warning in DJGPP |
Followup-To: | comp.os.msdos.djgpp,gnu.gcc.help,gnu.g++.help |
Date: | 6 Dec 1999 14:00:22 GMT |
Organization: | None |
Lines: | 35 |
Message-ID: | <82gfhm$5qu$1@gail.ripco.com> |
References: | <82er4c$b06$1 AT gail DOT ripco DOT com> |
NNTP-Posting-Host: | foley.ripco.com |
X-Trace: | gail.ripco.com 944488822 5982 209.100.227.6 (6 Dec 1999 14:00:22 GMT) |
X-Complaints-To: | usenet AT gail DOT ripco DOT com |
NNTP-Posting-Date: | 6 Dec 1999 14:00:22 GMT |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I've solved the problem. I looked at the compiler souce to find "-Wno-missing-braces". Blackbear (therapy AT ripco DOT 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]')
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |