mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Do not use -Wfloat-conversion with recent gcc versions
This commit is contained in:
parent
8c3dbe19b6
commit
a22f7b7001
@ -312,14 +312,7 @@ if test x$GXX = xyes; then
|
||||
fi
|
||||
dnl Warnings are for preprocessor too
|
||||
if test x$enable_warnings = xyes ; then
|
||||
case $gxx_version in
|
||||
4.0*|4.1*|4.2*|4.3*|4.4*|4.5*|4.6*|4.7*|4.8*|clang)
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra"
|
||||
;;
|
||||
*)
|
||||
AM_CPPFLAGS="$AM_CPPFLAGS -Wall -Wextra -Wfloat-conversion"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
case $gxx_version in
|
||||
2.*|3.*) AC_ERROR([gcc 4.x is required]);;
|
||||
|
Loading…
Reference in New Issue
Block a user