From: Martin Schroeder <mkschreder.uk@googlemail.com>
To: linux-kernel@vger.kernel.org
Subject: A far fetched goal to clean up code quality
Date: Wed, 15 Aug 2018 20:33:36 +0200 [thread overview]
Message-ID: <CAGmj6qs6tPvVMsxSLPgkNkmfUYSuqvTR+sqpuR+k5cEoUo9hww@mail.gmail.com> (raw)
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
next reply other threads:[~2018-08-15 18:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-15 18:33 Martin Schroeder [this message]
2018-08-15 19:49 ` A far fetched goal to clean up code quality Al Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGmj6qs6tPvVMsxSLPgkNkmfUYSuqvTR+sqpuR+k5cEoUo9hww@mail.gmail.com \
--to=mkschreder.uk@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).