Commit c961848a authored by Ghislain MARY's avatar Ghislain MARY

Stricter compilation options.

parent 8fbc0d7f
......@@ -117,7 +117,7 @@ else()
list(APPEND STRICT_OPTIONS_CXX "-stdlib=libc++")
endif()
if(ENABLE_STRICT)
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-fno-strict-aliasing")
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wextra" "-fno-strict-aliasing")
endif()
endif()
if(STRICT_OPTIONS_CPP)
......
......@@ -32,7 +32,7 @@ AM_SILENT_RULES(yes)
# Checks for programs.
AC_PROG_CXX
CXXFLAGS="$CXXFLAGS -std=c++11 -Wall -Werror"
CXXFLAGS="$CXXFLAGS -std=c++11 -Wall -Werror -Wextra"
# Checks for libraries.
dnl ##################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment