Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
483a58f6
Unverified
Commit
483a58f6
authored
Mar 16, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚨
added pedantic flags for GCC
With GCC 7, there are even more diagnostic flags.
parent
100bf3ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
1 deletion
+61
-1
Makefile
Makefile
+61
-1
No files found.
Makefile
View file @
483a58f6
...
@@ -51,7 +51,7 @@ doctest:
...
@@ -51,7 +51,7 @@ doctest:
# -Wno-keyword-macro: unit-tests use "#define private public"
# -Wno-keyword-macro: unit-tests use "#define private public"
# -Wno-weak-vtables: exception class is defined inline, but has virtual method
# -Wno-weak-vtables: exception class is defined inline, but has virtual method
# -Wno-range-loop-analysis: iterator_wrapper tests tests "for(const auto i...)"
# -Wno-range-loop-analysis: iterator_wrapper tests tests "for(const auto i...)"
pedantic
:
pedantic
_clang
:
$(MAKE)
json_unit
CXXFLAGS
=
"
\
$(MAKE)
json_unit
CXXFLAGS
=
"
\
-std=c++11
\
-std=c++11
\
-Werror
\
-Werror
\
...
@@ -62,6 +62,66 @@ pedantic:
...
@@ -62,6 +62,66 @@ pedantic:
-Wno-weak-vtables
\
-Wno-weak-vtables
\
-Wno-range-loop-analysis"
-Wno-range-loop-analysis"
# calling GCC with most warnings
pedantic_gcc
:
$(MAKE)
json_unit
CXX
=
g++
CXXFLAGS
=
"
\
-std=c++11
\
-Werror
\
-Wall -Wpedantic -Wextra
\
-Walloca
\
-Warray-bounds=2
\
-Wcast-qual -Wcast-align
\
-Wchar-subscripts
\
-Wconditionally-supported
\
-Wconversion
\
-Wdate-time
\
-Wdeprecated
\
-Wdisabled-optimization
\
-Wdouble-promotion
\
-Wduplicated-branches
\
-Wduplicated-cond
\
-Weffc++
\
-Wformat-overflow=2
\
-Wformat-signedness
\
-Wformat-truncation=2
\
-Wformat=2
\
-Wimplicit-fallthrough=5
\
-Wlogical-op
\
-Wmissing-declarations
\
-Wmissing-format-attribute
\
-Wmissing-include-dirs
\
-Wnoexcept
\
-Wnonnull
\
-Wnull-dereference
\
-Wold-style-cast
\
-Woverloaded-virtual
\
-Wparentheses
\
-Wplacement-new=2
\
-Wredundant-decls
\
-Wreorder
\
-Wrestrict
\
-Wshadow=global
\
-Wshift-overflow=2
\
-Wsign-conversion
\
-Wsign-promo
\
-Wsized-deallocation
\
-Wstrict-overflow=5
\
-Wsuggest-attribute=const
\
-Wsuggest-attribute=format
\
-Wsuggest-attribute=noreturn
\
-Wsuggest-attribute=pure
\
-Wsuggest-final-methods
\
-Wsuggest-final-types
\
-Wsuggest-override
\
-Wtrigraphs
\
-Wundef
\
-Wuninitialized -Wunknown-pragmas
\
-Wunused
\
-Wunused-const-variable=2
\
-Wunused-macros
\
-Wunused-parameter
\
-Wuseless-cast
\
-Wvariadic-macros"
##########################################################################
##########################################################################
# fuzzing
# fuzzing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment