mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
configure: Enable compiler warnings to help add 'noreturn' attribute
This attributes helps the compiler to produce better binary code. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
fc825382d6
commit
9e90cebc01
@@ -135,6 +135,10 @@ AS_IF([test "x$debug" = "xyes"],
|
||||
[-Wsuggest-attribute=format dnl new gcc syntax
|
||||
-Wmissing-format-attribute dnl old gcc syntax, clang
|
||||
])
|
||||
WM_CFLAGS_CHECK_FIRST([no-return attribute suggest],
|
||||
[-Wsuggest-attribute=noreturn dnl gcc syntax
|
||||
-Wmissing-noreturn dnl clang syntax
|
||||
])
|
||||
], [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