Skip to content

Commit

Permalink
configure: Don't use -pedantic.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tokkee committed Feb 24, 2014
1 parent 1beb631 commit 729e49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 729e49f

Please sign in to comment.