AUTOCONF macro + gcc -Wunreachable-code = NOWORK
hi,
sry for the strange subject but i don't know where to ask this
(if someone knows a good place PLZ let me know)
-i work on gentoo linux on x86 (nothing speciall)
-in my configure.ac i use AC_FUNC_MALLOC
to check for a system malloc function that is gnu compilant.
if i compile with the standard options (i think just -02) it
works fine:
">checking for GNU libc compatible malloc... yes"
-BUT if i use "-Dunreachable-code -W -Werror"
">checking for GNU libc compatible malloc... no"
so i guess there is sth. strange in malloc.h that make the test
bail out with the options above. but this is a system header it should
compile without any warnings RIGHT!?
PLZ if someone has ever had a prob. like this or knows there to
post this question. let me know
thomas zauner