1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

gcc-4.5.0 show a warning when comparing enums.

This commit is contained in:
Witold Filipczyk 2010-07-04 13:32:06 +02:00 committed by Witold Filipczyk
parent fecb5f1f9d
commit cb6556302c

View File

@ -1687,6 +1687,9 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
# alternative is just too ugly. Thanks gcc guys!! ;)
CFLAGS="$CFLAGS -fno-strict-aliasing"
;;
4.5*)
CFLAGS="$CFLAGS -fno-strict-aliasing -Wno-pointer-sign -Wno-enum-compare"
;;
4.*)
# Do not show warnings related to (char * | unsigned char *) type
# difference.