[Bug c/60523] Warning flag for octal literals
david at westcontrol dot com
gcc-bugzilla@gcc.gnu.org
Fri Mar 14 10:39:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60523
--- Comment #2 from David Brown <david at westcontrol dot com> ---
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.
More information about the Gcc-bugs
mailing list