lkml.org 
[lkml]   [2018]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectA 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

\
 
 \ /
  Last update: 2018-08-15 20:34    [W:0.039 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site