OSDN Git Service

configure: set strict default compiler flags
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 21 Nov 2017 19:31:23 +0000 (11:31 -0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 21 Nov 2017 22:07:59 +0000 (14:07 -0800)
Use -Wall -Werror compiler flags for stricter compilation.

Fixes #146

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
configure.ac

index ad53d0a..0507d64 100644 (file)
@@ -301,6 +301,9 @@ if test "$USE_DRM:$USE_X11:$USE_WAYLAND" = "no:no:no"; then
     AC_MSG_ERROR([Please select at least one backend (DRM, X11, Wayland)])
 fi
 
+AC_SUBST([AM_CFLAGS], ["-Wall -Werror"])
+AC_SUBST([AM_CXXFLAGS], ["-Wall -Werror"])
+
 AC_OUTPUT([
     Makefile
     doc/Makefile