diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2018-08-24 08:13:23 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2018-08-24 08:13:25 -0300 |
| commit | f9ba7c277eab1fd866097a88e583cde7239e575a (patch) | |
| tree | 41b5291a6dec50b32803e99fbb66c67d89589eb1 | |
| parent | 4a75d6db73f71ee52d4170e4ff988093e496cd7e (diff) | |
Don't error on unused-function.
Because of convertCharPointerToStdString for example.
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index aab625a..322f1b4 100644 --- a/configure.ac +++ b/configure.ac @@ -86,8 +86,8 @@ AC_CHECK_HEADERS(sys/ioctl.h unistd.h) AS_IF([test "x${GXX}" = "xyes" ], [ CXXFLAGS="-Wall -Wextra ${CXXFLAGS}" AS_IF([ test "x${enable_debug}" = "xyes" ], [ - # Add -Werror in debug mode - CXXFLAGS="-Werror ${CXXFLAGS}" + # Add -Werror in debug mode (except unused-function) + CXXFLAGS="-Werror -Wno-error=unused-function ${CXXFLAGS}" ], [ # hide private symbols in non-debug mode visibility="-fvisibility=hidden" |
