Article View: comp.sys.sgi.bugs
Article #22c-compiler false diagnostic.
From: Frans van Hoesel
Date: Wed, 23 Dec 1992 16:36
Date: Wed, 23 Dec 1992 16:36
34 lines
1396 bytes
1396 bytes
Hi ,
the c compiler on my indigo (4.0.1) gives the following warning on the
following program.
#include <stdio.h>
int main() {
int i;
int p[] = { 1,2,3,4,5};
for (i = 0; i<5; i++ ) printf("%d ", p[i]);
;
return 0;
}
> cc -fullwarn -ansi t4.c
accom: Warning 302: t4.c, line 8: bodyless for statement
;
-^
This seems incorrect to me. (the warning I got was the result from some
huge preprocessor macro, not this little program above. It costed me
quite some time to discover that everything was ok, besides the warning
itself).
A - in my case - related question: is there a maximum length for the
replacement of a macro (can I have a macro with a body of say 10000
characters)?
-- frans
--
-- ============================================================== --
---- === frans van hoesel hoesel@igc.ethz.ch === ----
-- ============================================================== --
Technical Details
Message-ID:
<1992Dec23.163608.24772@bernina.ethz.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!chx400!bernina!hoeselShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.sgi.bugs Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!chx400!bernina!hoesel From: hoesel@igc.ethz.ch (Frans van Hoesel) Subject: c-compiler false diagnostic. Message-ID: <1992Dec23.163608.24772@bernina.ethz.ch> Sender: news@bernina.ethz.ch (USENET News System) Organization: University of Groningen, the Netherlands Date: Wed, 23 Dec 1992 16:36:08 GMT Lines: 34