Commit 405e0aab authored by Roland Levillain's avatar Roland Levillain
Browse files

Add warning flags to Scribo compiler flags.

	* configure.ac (SCRIBO_CXXFLAGS, SCRIBO_TESTS_CXXFLAGS):
	Add $WARNINGS_CXXFLAGS.
parent d3352969
2014-06-27 Roland Levillain <roland@lrde.epita.fr>
Add warning flags to Scribo compiler flags.
* configure.ac (SCRIBO_CXXFLAGS, SCRIBO_TESTS_CXXFLAGS):
Add $WARNINGS_CXXFLAGS.
2014-06-27 Roland Levillain <roland@lrde.epita.fr> 2014-06-27 Roland Levillain <roland@lrde.epita.fr>
* configure.ac: Aesthetic changes. * configure.ac: Aesthetic changes.
......
...@@ -429,9 +429,9 @@ AC_CONFIG_FILES([ ...@@ -429,9 +429,9 @@ AC_CONFIG_FILES([
AC_ARG_VAR([SCRIBO_CXXFLAGS], [C++ compiler flags for Scribo binaries]) AC_ARG_VAR([SCRIBO_CXXFLAGS], [C++ compiler flags for Scribo binaries])
AC_ARG_VAR([SCRIBO_TESTS_CXXFLAGS], [C++ compiler flags for Scribo tests]) AC_ARG_VAR([SCRIBO_TESTS_CXXFLAGS], [C++ compiler flags for Scribo tests])
if test "$GXX" = yes || test "$ICPC" = yes; then if test "$GXX" = yes || test "$ICPC" = yes; then
test -z "$SCRIBO_CXXFLAGS" && SCRIBO_CXXFLAGS="-DNDEBUG -O2" test -z "$SCRIBO_CXXFLAGS" && SCRIBO_CXXFLAGS="-DNDEBUG -O2 $WARNINGS_CXXFLAGS"
# FIXME: We might want to use -ggdb when g++ is used. # FIXME: We might want to use -ggdb when g++ is used.
test -z "$SCRIBO_TESTS_CXXFLAGS" && SCRIBO_TESTS_CXXFLAGS="-g -O0" test -z "$SCRIBO_TESTS_CXXFLAGS" && SCRIBO_TESTS_CXXFLAGS="-g -O0 $WARNINGS_CXXFLAGS"
fi fi
## --------------- ## ## --------------- ##
......
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