diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-12-19 15:08:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-12-19 21:57:49 +0100 |
commit | 0b63b751b1cd29bb6d092ded9d864b4088e948fa (patch) | |
tree | 579613a124afc93b5aa6d23750fd4047cbd75f17 /configure.ac | |
parent | 7504af39686171ffb16e70f798d9ecf4ea98f1d3 (diff) |
Remove unnecessary -Wunknown-pragmas
...which was added with 92dfa82d2d25f2acdee0a538bf15f1fac36c0ecf "adjust for
upstreaming of warn_unused attribute" but appears to be unnecessary cargo-copy
from bdb87236dcbc1187b15e1a457e130ff997b0949b "Fix pragma GCC diagnostic
checks". Both old GCC (e.g., 4.8.5) and Clang (e.g., 3.4.2) emit a -Wattributes
warning/error here by default.
Change-Id: I2fd81ac411000c4b851a77de432bf14eb1bc0d61
Reviewed-on: https://gerrit.libreoffice.org/46796
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 5addbb4a5319..0689111ae700 100644 --- a/configure.ac +++ b/configure.ac @@ -5926,7 +5926,7 @@ if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then AC_MSG_CHECKING([whether $CXX supports __attribute__((warn_unused))]) AC_LANG_PUSH([C++]) save_CXXFLAGS=$CXXFLAGS - CXXFLAGS="$CXXFLAGS -Werror -Wunknown-pragmas" + CXXFLAGS="$CXXFLAGS -Werror" AC_COMPILE_IFELSE([AC_LANG_SOURCE([ struct __attribute__((warn_unused)) dummy {}; ])], [ |