|
@@ -5728,31 +5728,6 @@ if compile_prog "" "" ; then
|
|
linux_magic_h=yes
|
|
linux_magic_h=yes
|
|
fi
|
|
fi
|
|
|
|
|
|
-########################################
|
|
|
|
-# check whether we can disable warning option with a pragma (this is needed
|
|
|
|
-# to silence warnings in the headers of some versions of external libraries).
|
|
|
|
-# This test has to be compiled with -Werror as otherwise an unknown pragma is
|
|
|
|
-# only a warning.
|
|
|
|
-#
|
|
|
|
-# If we can't selectively disable warning in the code, disable -Werror so that
|
|
|
|
-# the build doesn't fail anyway.
|
|
|
|
-
|
|
|
|
-pragma_disable_unused_but_set=no
|
|
|
|
-cat > $TMPC << EOF
|
|
|
|
-#pragma GCC diagnostic push
|
|
|
|
-#pragma GCC diagnostic ignored "-Wstrict-prototypes"
|
|
|
|
-#pragma GCC diagnostic pop
|
|
|
|
-
|
|
|
|
-int main(void) {
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-EOF
|
|
|
|
-if compile_prog "-Werror" "" ; then
|
|
|
|
- pragma_diagnostic_available=yes
|
|
|
|
-else
|
|
|
|
- werror=no
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
########################################
|
|
########################################
|
|
# check if we have valgrind/valgrind.h
|
|
# check if we have valgrind/valgrind.h
|
|
|
|
|
|
@@ -7689,10 +7664,6 @@ if test "$linux_magic_h" = "yes" ; then
|
|
echo "CONFIG_LINUX_MAGIC_H=y" >> $config_host_mak
|
|
echo "CONFIG_LINUX_MAGIC_H=y" >> $config_host_mak
|
|
fi
|
|
fi
|
|
|
|
|
|
-if test "$pragma_diagnostic_available" = "yes" ; then
|
|
|
|
- echo "CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE=y" >> $config_host_mak
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
if test "$valgrind_h" = "yes" ; then
|
|
if test "$valgrind_h" = "yes" ; then
|
|
echo "CONFIG_VALGRIND_H=y" >> $config_host_mak
|
|
echo "CONFIG_VALGRIND_H=y" >> $config_host_mak
|
|
fi
|
|
fi
|