Alien-cares
view release on metacpan or search on metacpan
libcares/m4/cares-compilers.m4 view on Meta::CPAN
else
dnl When cross-compiling with a gcc older than 3.0, disable
dnl some warnings triggered on third party system headers.
if test "x$cross_compiling" = "xyes"; then
if test "$compiler_num" -ge "104"; then
dnl gcc 1.4 or later
tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
fi
if test "$compiler_num" -ge "207"; then
dnl gcc 2.7 or later
tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
fi
fi
fi
;;
#
HP_UX_C)
#
if test "$want_warnings" = "yes"; then
dnl Issue all warnings
tmp_CFLAGS="$tmp_CFLAGS +w1"
fi
;;
#
IBM_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
INTEL_UNIX_C)
#
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
dnl Show errors, warnings, and remarks
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
dnl Perform extra compile-time code checking
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
dnl Warn on nested comments
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
dnl Show warnings relative to deprecated features
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
dnl Enable warnings for missing prototypes
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
dnl Enable warnings for 64-bit portability issues
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
dnl Enable warnings for questionable pointer arithmetic
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
dnl Check for function return typw issues
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
dnl Warn on variable declarations hiding a previous one
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
dnl Warn when a variable is used before initialized
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
dnl Warn if a declared function is not used
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
fi
fi
dnl Disable using EBP register in optimizations
tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
dnl Disable use of ANSI C aliasing rules in optimizations
tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
dnl Value-safe optimizations on floating-point data
tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
dnl Only icc 10.0 or later
if test "$compiler_num" -ge "1000"; then
dnl Disable vectorizer diagnostic information
tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
fi
;;
#
INTEL_WINDOWS_C)
#
dnl Placeholder
tmp_CFLAGS="$tmp_CFLAGS"
;;
#
LCC)
#
if test "$want_warnings" = "yes"; then
dnl Highest warning level is double -A, next is single -A.
dnl Due to the big number of warnings these trigger on third
dnl party header files it is impractical for us to use any of
dnl them here. If you want them simply define it in CPPFLAGS.
tmp_CFLAGS="$tmp_CFLAGS"
fi
;;
#
SGI_MIPS_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
fi
;;
#
SGI_MIPSPRO_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
dnl Disable some remarks
dnl #1209: controlling expression is constant
tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
fi
;;
#
SUNPRO_C)
#
if test "$want_warnings" = "yes"; then
dnl Perform stricter semantic and lint-like checks
tmp_CFLAGS="$tmp_CFLAGS -v"
fi
;;
#
TINY_C)
#
if test "$want_warnings" = "yes"; then
dnl Activate all warnings
tmp_CFLAGS="$tmp_CFLAGS -Wall"
( run in 0.904 second using v1.01-cache-2.11-cpan-df04353d9ac )