mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
Makefile: add -Wformat-security to CFLAGS
Apparently when travis checks patches, it compiles code with -Wformat-security (most probably because the distro/gcc it uses has it on by default), but on my system (Fedora 24/gcc 6.1.1) this flag is not on. As a result, code compiles fine for me but travis reports an error. Add -Wformat-security to default CFLAGS. It helps to catch problems like using printf(str) instead of printf("%s", str). Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
f1a9cd4d41
commit
00d48810a8
2
Makefile
2
Makefile
@@ -105,7 +105,7 @@ DEFINES += -D_GNU_SOURCE
|
|||||||
|
|
||||||
CFLAGS += $(USERCFLAGS)
|
CFLAGS += $(USERCFLAGS)
|
||||||
|
|
||||||
WARNINGS := -Wall
|
WARNINGS := -Wall -Wformat-security
|
||||||
|
|
||||||
CFLAGS-GCOV := --coverage -fno-exceptions -fno-inline
|
CFLAGS-GCOV := --coverage -fno-exceptions -fno-inline
|
||||||
export CFLAGS-GCOV
|
export CFLAGS-GCOV
|
||||||
|
Reference in New Issue
Block a user