diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-13 13:22:33 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-06-13 13:22:33 +0000 |
commit | 2e9527809bd24b52a83cbd1120302bad13f2a00e (patch) | |
tree | a181ce50fa82db72dc20c3c53d399d3191c3d054 | |
parent | f11f3c73914b2dbf4b60cf7b4648c1c4d310b62f (diff) | |
download | mpfr-2e9527809bd24b52a83cbd1120302bad13f2a00e.tar.gz |
[configure.ac] No longer add -Wc++-compat to CFLAGS when the compiler
is GCC not in C++ mode (reverting the change done in r13406) since this
option is not available before GCC 4.1:
https://sympa.inria.fr/sympa/arc/mpfr/2020-06/msg00008.html
(merged changeset r14018 from the trunk)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.1@14019 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d199f6775..e1462692e 100644 --- a/configure.ac +++ b/configure.ac @@ -458,6 +458,8 @@ dnl (__GMP_CFLAGS macro in gmp.h) above. The consequence is that this dnl might yield a compilation failure if the -Werror option appears in dnl __GMP_CFLAGS. But in this case, since -Werror is not used by default, dnl one may expect that the user would also set CFLAGS for MPFR. +dnl Note: When the compiler is GCC not in C++ mode, -Wc++-compat may be +dnl interesting, but it has been introduced in GCC 4.1 only. if test "$test_CFLAGS" != set && test -n "$GCC"; then CFLAGS="-Wpointer-arith $CFLAGS" AC_MSG_CHECKING(whether the selected language is C++) @@ -468,7 +470,7 @@ error #endif ]], [[]])],[ AC_MSG_RESULT(no) - CFLAGS="-Wmissing-prototypes -Wc++-compat $CFLAGS" + CFLAGS="-Wmissing-prototypes $CFLAGS" ],[ AC_MSG_RESULT(yes) CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS" |