mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
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 <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
12b6120f05
commit
10bc05170c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user