From: Christophe CURIS <[email protected]>

This attributes helps the compiler to produce better binary code.

Signed-off-by: Christophe CURIS <[email protected]>
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 81ff837..d995e63 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
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to