Code

configure: Don't use -pedantic.
authorSebastian Harl <sh@tokkee.org>
Mon, 24 Feb 2014 01:48:25 +0000 (17:48 -0800)
committerSebastian Harl <sh@tokkee.org>
Mon, 24 Feb 2014 01:48:25 +0000 (17:48 -0800)
Else, GCC will complain about "ISO C forbids conversion of object pointer to
function pointer type", even for casting function points to or from void
pointers. This is allowed by POSIX, though, and required, for example, for
dlsym() to work.

configure.ac

index e64e094ccbbfc20070a147acaa0a94528f9919ce..420021f628ab81d61a4e898fe1acdc6c3d173f2a 100644 (file)
@@ -108,7 +108,7 @@ if test "x$enable_standards" = "xyes"; then
        dnl strict standards compliance a bit to work around this.
        AC_DEFINE([_BSD_SOURCE], 1, [Define to enable 4.3BSD support.])
 
-       for flag in -std=c99 -pedantic; do
+       for flag in -std=c99; do
                AC_MSG_CHECKING([whether $CC accepts $flag])
 
                if test_cc_flags $flag; then