linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A far fetched goal to clean up code quality
@ 2018-08-15 18:33 Martin Schroeder
  2018-08-15 19:49 ` Al Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Schroeder @ 2018-08-15 18:33 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-15 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 18:33 A far fetched goal to clean up code quality Martin Schroeder
2018-08-15 19:49 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).