[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_CHECK_FUNC with -Werror
From: |
Chris Frey |
Subject: |
AC_CHECK_FUNC with -Werror |
Date: |
Fri, 5 Jun 2009 04:11:57 -0400 |
User-agent: |
Mutt/1.4.1i |
Hi,
I'm noticing that if I use something like AC_CHECK_FUNC([strdup])
and then run configure like:
CFLAGS="-Wall -Werror" ./configure
The test for strdup fails with the error:
error: conflicting types for built-in function 'strdup'
when using gcc 4.3.2.
What is the recommended way to use both of these features (AC_CHECK_FUNC
and -Werror) at once?
Thanks,
- Chris
- AC_CHECK_FUNC with -Werror,
Chris Frey <=