Skip to content
Snippets Groups Projects
Commit dc73af83 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

add -Wformat=2 check to debug build

Change-Id: Ie7e526c5c7c9e5bafd6fd44003b4a24ffee2eaa2
parent df109c53
No related branches found
No related tags found
No related merge requests found
...@@ -689,7 +689,7 @@ dnl debug mode is default-disabled ...@@ -689,7 +689,7 @@ dnl debug mode is default-disabled
AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Build in debug mode, adds stricter warnings, disables optimization])) AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Build in debug mode, adds stricter warnings, disables optimization]))
AS_IF([test "x$enable_debug" = "xyes"], AS_IF([test "x$enable_debug" = "xyes"],
[CXXFLAGS="${CXXFLAGS} -g -fno-omit-frame-pointer -Wall -Wextra -Wnon-virtual-dtor -Wno-unknown-pragmas -O0"]) [CXXFLAGS="${CXXFLAGS} -g -fno-omit-frame-pointer -Wall -Wextra -Wnon-virtual-dtor -Wno-unknown-pragmas -Wformat=2 -O0"])
dnl What Makefiles to generate dnl What Makefiles to generate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment