When compiling a C or C++ program with gcc 4.3 (and 4.4), there is no longer a
warning about "no newline at end of file".

I work with people that use gcc 4.2, which emits the warning, and we use
-Werror, so this is a major hindrance for us.

I'm attaching a trivial C program:

$ gcc-4.2 -o newline newline.c
newline.c:4:2: warning: no newline at end of file
$

$ gcc-4.3 -o newline newline.c
$

Versions (all from debian unstable):
gcc-4.2 --version
gcc-4.2 (GCC) 4.2.4 (Debian 4.2.4-6)
gcc-4.3 --version
gcc-4.3 (Debian 4.3.3-11) 4.3.3
gcc-4.4 --version
gcc-4.4 (Debian 4.4.0-6) 4.4.0


Regards,
Romain


-- 
           Summary: gcc 4.3 no longer warns about missing newlines at end of
                    files (regression from 4.2)
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rlerallut at free dot fr


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

Reply via email to