I get the following warning:

dixsept:~> cat > tst.c
#define FOO
dixsept:~> gcc -pedantic -c tst.c
tst.c:1: warning: ISO C forbids an empty source file

But the source isn't empty (and AFAIK, the ISO C doesn't forbid empty sources).
Perhaps gcc mixes up with a translation unit, in which case the wording should
be changed.


-- 
           Summary: Incorrect warning "ISO C forbids an empty source file"
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vincent at vinc17 dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28800

Reply via email to