From 9e90cebc01ee49d9d81e0cb64bf6b6824c685f80 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 15 Nov 2013 18:46:39 +0100 Subject: [PATCH] configure: Enable compiler warnings to help add 'noreturn' attribute This attributes helps the compiler to produce better binary code. Signed-off-by: Christophe CURIS --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 81ff8371..d995e630 100644 --- a/configure.ac +++ b/configure.ac @@ -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