mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: Enable -Wformat and resolve all related compiler warnings
There have been tons of format-string related bugs in our code which we never discovered due to disabling -Wformat. Let's fix that. Change-Id: I5ec466361bcc526fac1f4897673264ee5af3458b
This commit is contained in:
@@ -141,13 +141,12 @@ INCLUDES += -Ilibosmocore/include
|
||||
INCLUDES += -Isrc_simtrace -Iinclude
|
||||
INCLUDES += -Iapps/$(APP)
|
||||
|
||||
CFLAGS += -Wall -Wchar-subscripts -Wcomment -Wimplicit-int #-Wformat=2
|
||||
CFLAGS += -Wall -Wchar-subscripts -Wcomment -Wimplicit-int -Wformat=2
|
||||
CFLAGS += -Werror-implicit-function-declaration -Wmain -Wparentheses
|
||||
CFLAGS += -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs #-Wunused
|
||||
CFLAGS += -Wuninitialized -Wunknown-pragmas -Wfloat-equal #-Wundef
|
||||
CFLAGS += -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings
|
||||
CFLAGS += -Waggregate-return #-Wsign-compare
|
||||
CFLAGS += -Wformat=0
|
||||
CFLAGS += -Wmissing-format-attribute -Wno-deprecated-declarations
|
||||
CFLAGS += #-Wpacked
|
||||
CFLAGS += -Wredundant-decls -Wnested-externs #-Winline -Wlong-long
|
||||
|
||||
Reference in New Issue
Block a user