1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +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:
Christophe CURIS
2013-11-15 18:46:39 +01:00
committed by Carlos R. Mafra
parent fc825382d6
commit 9e90cebc01

View File

@@ -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