Fail the compilation on warnings, so we avoid silly mistakes like found
in SPEC-3843.
Bug-AGL: SPEC-3843
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ib7905cdfb9a6012c4a5306255779293f3ba38778
# Either separate options with ";", or each options must be quoted separately
# DO NOT PUT ALL OPTION QUOTED AT ONCE , COMPILATION COULD FAILED !
# ----------------------------------------------------------------------------
+set(COMPILE_OPTIONS
+ -Wall
+ -Wextra
+ -Werror
+ -Wno-cpp
+ -Wno-missing-field-initializers
+ -fstack-protector-all
+ -Wl,-z,relro,-z,now
+ CACHE STRING "Compilation flags"
+)
#set(COMPILE_OPTIONS
# -Wall
# -Wextra