News for hackers. Stuff that matters.
Re:The most useful GCC options and extensions by matthavener on Monday July 11, 2011 @02:17PM (#2751825)
A few others I use are -Wsign-compare and -Wformat-nonliteral. Sign compare warns on possible bugs/vulnerabilities due to comparing signed and unsigned values. Using nonliteral formats can lead to vulnerabilities (such as the famous attacks on FTP servers http://seclists.org/bugtraq/1999/Sep/328)
Re:The most useful GCC options and extensions by zokier on Monday July 11, 2011 @07:27PM (#2752902)
-Wall includes -Wsign-compare
Re:The most useful GCC options and extensions by 1amzave on Monday July 11, 2011 @07:42PM (#2752942)
You must be a C++ user -- I (a C guy) immediately thought "what? No, that's in -Wextra, not -Wall", checked the man page to confirm, and sure enough, it differs (-Wall includes sign-compare when compiling C++, but not C).