From 10bc05170c7f15346f791af30c3025d895412989 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 16 Nov 2013 20:14:25 +0100 Subject: [PATCH] configure: Enable compiler warnings for trampoline code generation This attribute reports cases where GCC has to generate special code to handle some C constructs, for which we'd prefer an explicit code instead of counting on GCC doing the work. Signed-off-by: Christophe CURIS --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 1ecd8f57..fe40789d 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,11 @@ AS_IF([test "x$debug" = "xyes"], [-Wsuggest-attribute=noreturn dnl gcc syntax -Wmissing-noreturn dnl clang syntax ]) + dnl + dnl The use of trampolines cause code that can crash on some + dnl secured OS, and in a more general way generate binary code + dnl that may not be optimal + AX_CFLAGS_GCC_OPTION([-Wtrampolines]) ], [dnl dnl When debug not enabled, we try to avoid some non-necessary dnl messages from the compiler