Messages in this thread | | | From | Martin Schroeder <> | Date | Wed, 15 Aug 2018 20:33:36 +0200 | Subject | A far fetched goal to clean up code quality |
| |
I propose using following set of GCC flags to enforce code quality in the long run.
-Wall -Wextra -Werror\ -std=gnu11\ -pedantic \ -Wchar-subscripts\ -Wformat\ -Wformat-nonliteral\ -Wformat-security\ -Wmissing-braces\ -Wparentheses\ -Wsequence-point\ -Wswitch\ -Wtrigraphs\ -Wno-unused-function\ -Wunused-label\ -Wno-unused-parameter\ -Wunused-variable\ -Wunused-value\ -Wuninitialized\ -Wdiv-by-zero\ -Wfloat-equal\ -Wdouble-promotion\ -fsingle-precision-constant\ -Wshadow\ -Wpointer-arith\ -Wwrite-strings\ -Wconversion\ -Wredundant-decls\ -Wunreachable-code\ -Winline\ -Wenum-compare \ -Wlong-long\ -Wchar-subscripts
| |