Mercurial > hg > sonic-annotator
comparison configure.ac @ 138:ee56e3e9eeb5
Add -Werror in debug mode, and fix errors resulting from it
author | Chris Cannam |
---|---|
date | Mon, 13 Oct 2014 11:42:54 +0100 |
parents | 5fe1f2efd407 |
children | 795d67a5e266 |
comparison
equal
deleted
inserted
replaced
135:caf05503bf42 | 138:ee56e3e9eeb5 |
---|---|
1 | 1 |
2 AC_INIT([Sonic Annotator], [1.0], cannam@all-day-breakfast.com) | 2 AC_INIT([Sonic Annotator], [1.1-hg], cannam@all-day-breakfast.com) |
3 | 3 |
4 AC_CONFIG_SRCDIR(runner/main.cpp) | 4 AC_CONFIG_SRCDIR(runner/main.cpp) |
5 | 5 |
6 # Autoconf will set CXXFLAGS; we don't usually want it to, because we | 6 # Autoconf will set CXXFLAGS; we don't usually want it to, because we |
7 # either define our own flags (at least if GCC is in use) or else use | 7 # either define our own flags (at least if GCC is in use) or else use |
48 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" | 48 CXXFLAGS_DEBUG="$AUTOCONF_CXXFLAGS" |
49 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" | 49 CXXFLAGS_RELEASE="$AUTOCONF_CXXFLAGS" |
50 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" | 50 CXXFLAGS_MINIMAL="$AUTOCONF_CXXFLAGS" |
51 | 51 |
52 if test "x$GCC" = "xyes"; then | 52 if test "x$GCC" = "xyes"; then |
53 CXXFLAGS_DEBUG="-Wall -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" | 53 CXXFLAGS_DEBUG="-Wall -Werror -Woverloaded-virtual -Wextra -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -g -pipe" |
54 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" | 54 CXXFLAGS_RELEASE="-g0 -O2 -Wall -pipe" |
55 CXXFLAGS_MINIMAL="-g0 -O0" | 55 CXXFLAGS_MINIMAL="-g0 -O0" |
56 fi | 56 fi |
57 | 57 |
58 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" | 58 CXXFLAGS_BUILD="$CXXFLAGS_RELEASE" |