Skip to content
Snippets Groups Projects
Commit 1c4fa240 authored by Yang Tse's avatar Yang Tse
Browse files

configure: use autobuilds to temporarily verify strict aliasing warnings.

Temporarily, When cross-compiling with gcc 3.0 or later, enable strict aliasing
rules and warnings. Given that cross-compiled targets autobuilds do not run the
parent 5046dd02
No related branches found
No related tags found
No related merge requests found
......@@ -935,6 +935,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
dnl Also, on gcc 4.0.X it is totally unbearable and complains all
dnl over making it unusable for generic purposes. Let's not use it.
tmp_CFLAGS="$tmp_CFLAGS"
dnl When cross-compiling with gcc 3.0 or later,
dnl enable strict aliasing rules and warnings.
if test "x$cross_compiling" = "xyes"; then
tmp_CFLAGS="$tmp_CFLAGS -fstrict-aliasing -Wstrict-aliasing=2"
fi
fi
#
dnl Only gcc 3.3 or later
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment