cc_project_template_gn

A gn, ninja, and googletest-based C++ project template
git clone https://git.bracken.jp/cc_project_template_gn.git
Log | Files | Refs | Submodules | README | LICENSE

commit 32933e84866c60af302eb4a2dae0c826b7410a25
parent 6d820ea66c80c07d3025f06866422b9a3e4de8c9
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue, 20 Apr 2021 14:50:32 -0700

Use -Wall rather than -Weverything

Most of the time -Weverything makes very little sense in real projects
unless you want to explore compiler warnings, which is in fact why it
was set that way.

Setting back to -Wall since resetting it for each new project is a pain.

Diffstat:
Mbuild/BUILD.gn | 14++++----------
1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/build/BUILD.gn b/build/BUILD.gn @@ -14,18 +14,12 @@ config("compiler_std") { # Default compiler warnings. config("compiler_warnings") { cflags = [ - "-Weverything", + "-Wall", + "-Wextra", "-Werror", - "-Wno-disabled-macro-expansion", - ] - cflags_cc = [ - "-Wno-c++98-compat", - "-Wno-c++98-compat-pedantic", - ] - cflags_objcc = [ - "-Wno-c++98-compat", - "-Wno-c++98-compat-pedantic", ] + cflags_cc = [] + cflags_objcc = [] } # Debug mode build.