Article View: gnu.gcc.help
Article #51904Re: gcc-2.3.3 warning: aggregate has a partly bracketed initializer
From: Simon Leinen
Date: Fri, 19 Mar 1993 15:46
Date: Fri, 19 Mar 1993 15:46
18 lines
1523 bytes
1523 bytes
In article <PN.93Mar19102616@jocker.telelogic.se> pn@telelogic.se
(Piotr Nestorow - TeleLOGIC Malmoe AB) writes:
I get hundreds of the above warnings when compiling code generarted by
`lex' and `yacc' on SunOS4.X and SunOS5.1. I understand what gcc warns
about but I cannot fix `lex' and `yacc' so that they generate correct code.
I'm compiling with:
gcc -ansi -Wall
What flag can make `gcc' to disregard this problem with the code.
Try compiling these particular files without the -ansi and -Wall
switches. SunOS lex and yacc don't know that there is anything like
ANSI C.
Or maybe there are alternatives (bison? flex?) for YACC and lex that
(optionally) generate clean ANSI code?
--
Simon.
Technical Details
Message-ID:
<SIMON.93Mar19164627@liasg2.epfl.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!sicsun!disuns2.epfl.ch!disuns2.epfl.ch!simonReferences:
<PN.93Mar19102616@jocker.telelogic.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,404666c4035b5522 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-19 08:44:47 PST Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!sicsun!disuns2.epfl.ch!disuns2.epfl.ch!simon From: simon@lia.di.epfl.ch (Simon Leinen) Newsgroups: gnu.gcc.help Subject: Re: gcc-2.3.3 warning: aggregate has a partly bracketed initializer Message-ID: <SIMON.93Mar19164627@liasg2.epfl.ch> Date: 19 Mar 93 15:46:27 GMT References: <PN.93Mar19102616@jocker.telelogic.se> Organization: Ecole Polytechnique Federale de Lausanne Lines: 18 NNTP-Posting-Host: liasg2.epfl.ch In-reply-to: pn@telelogic.se's message of 19 Mar 93 09:26:16 GMT X-Md4-Signature: 420f75f85abe2d4c67b391afbe72de71