From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24440 invoked by alias); 14 Mar 2014 10:39:16 -0000 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 Received: (qmail 24376 invoked by uid 48); 14 Mar 2014 10:39:11 -0000 From: "david at westcontrol dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60523] Warning flag for octal literals Date: Fri, 14 Mar 2014 10:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: david at westcontrol dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-03/txt/msg01146.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60523 --- Comment #2 from David Brown --- Yes, octal literals are traditionally used for posix file modes (I know of no other common usage for them, but of course there may other uses that I haven't heard of). That is one of the reasons why "-Woctal" should probably not be part of "-Wall". But I think it is still within the scope of "-Wextra" of warnings that are triggered by valid code, but which often indicate problems. However, I am not fussy about its inclusion in -Wextra - it would be convenient for many users and let them take advantage of -Woctal without using it explicitly, but the main enhancement request is for the -Woctal flag itself.