From ec25b4ac0e3dc8ada039ad168dc5aebaff4bb253 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 4 Jun 2022 11:14:07 +0200 Subject: [PATCH] Disable `-Winline` <@aaaaaa123456789> I mean, `-Winline -Werror` is the "make my builds fail at random for no reason" switch --- CMakeLists.txt | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2283598e..2ac95335 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,7 @@ else() if(MORE_WARNINGS) add_compile_options(-Werror -Wextra -Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond - -Wfloat-equal -Winline -Wlogical-op -Wnested-externs -Wnull-dereference + -Wfloat-equal -Wlogical-op -Wnested-externs -Wnull-dereference -Wold-style-definition -Wshift-overflow=2 -Wstrict-overflow=5 -Wstrict-prototypes -Wstringop-overflow=4 -Wundef -Wuninitialized -Wunused -Wshadow # TODO: -Wshadow=compatible-local ? diff --git a/Makefile b/Makefile index 0ab4dcd9..24f756f7 100644 --- a/Makefile +++ b/Makefile @@ -214,7 +214,7 @@ checkdiff: develop: $Qenv ${MAKE} WARNFLAGS="-Werror -Wextra \ -Walloc-zero -Wcast-align -Wcast-qual -Wduplicated-branches -Wduplicated-cond \ - -Wfloat-equal -Winline -Wlogical-op -Wnested-externs -Wold-style-definition \ + -Wfloat-equal -Wlogical-op -Wnested-externs -Wold-style-definition \ -Wshift-overflow=2 \ -Wstrict-overflow=5 -Wstrict-prototypes -Wundef -Wuninitialized -Wunused \ -Wshadow \