From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26648 invoked by alias); 17 Jun 2009 11:40:37 -0000 Received: (qmail 26575 invoked by uid 48); 17 Jun 2009 11:40:20 -0000 Date: Wed, 17 Jun 2009 11:40:00 -0000 Subject: [Bug c/40474] New: gcc 4.3 no longer warns about missing newlines at end of files (regression from 4.2) X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rlerallut at free dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg01148.txt.bz2 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