🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.bugs
1 messages
1 total messages Started by Frans van Hoesel Wed, 23 Dec 1992 16:36
c-compiler false diagnostic.
#22
Author: Frans van Hoesel
Date: Wed, 23 Dec 1992 16:36
34 lines
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       ===  ----
--    ==============================================================    --
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads