From 53ef076715b1a7140f10556f6430e1adde133e94 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 28 May 2020 13:46:56 +0200 Subject: [PATCH] :wrench: add more warning flags from GCC 10 --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 7ef54df26..6d09420c1 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,11 @@ pedantic_gcc: rm -fr build_pedantic CXXFLAGS=" \ -std=c++11 \ + -pedantic \ -Werror \ + --all-warnings \ + --extra-warnings \ + -W \ -Wno-abi-tag \ -Waddress \ -Waddress-of-packed-member \ @@ -160,10 +164,13 @@ pedantic_gcc: -Wbool-operation \ -Wbuiltin-declaration-mismatch \ -Wbuiltin-macro-redefined \ + -Wc++0x-compat \ -Wc++11-compat \ -Wc++14-compat \ -Wc++17-compat \ + -Wc++1z-compat \ -Wc++20-compat \ + -Wc++2a-compat \ -Wcannot-profile \ -Wcast-align \ -Wcast-align=strict \ @@ -176,6 +183,7 @@ pedantic_gcc: -Wclobbered \ -Wcomma-subscript \ -Wcomment \ + -Wcomments \ -Wconditionally-supported \ -Wconversion \ -Wconversion-null \ @@ -294,6 +302,7 @@ pedantic_gcc: -Wscalar-storage-order \ -Wsequence-point \ -Wshadow=compatible-local \ + -Wshadow=global \ -Wshadow=local \ -Wshift-count-negative \ -Wshift-count-overflow \