mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Make --enable-gcc-warnings a no-op if not using gcc
This commit is contained in:
parent
0c0ec0be2b
commit
3267703658
@ -559,7 +559,7 @@ AM_CONDITIONAL(OPENSSL, [test "$enable_openssl" != "no" && test "$have_openssl"
|
||||
|
||||
# Add some more warnings which we use in development but not in the
|
||||
# released versions. (Some relevant gcc versions can't handle these.)
|
||||
if test x$enable_gcc_warnings = xyes; then
|
||||
if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
|
||||
|
||||
AC_COMPILE_IFELSE(AC_LANG_PROGRAM([], [
|
||||
#if !defined(__GNUC__) || (__GNUC__ < 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user