configure: add '-Wmissing-noreturn' to warning flags
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 9 Mar 2022 15:19:17 +0000 (10:19 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Mar 2022 21:00:21 +0000 (17:00 -0400)
Change-Id: I95a981348109d4614afcfe9c85f971e65afc2765
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
src/bin/lttng/lttng.cpp

index 8ca893f7512698fd159cbbc6f46b26c7f21fb702..65f9b0f75e57ad85d1161944a826d834b7962d10 100644 (file)
@@ -61,6 +61,7 @@ m4_define([WARN_FLAGS_COMMON_LIST], [ dnl
   -Wall dnl
   -Wnull-dereference dnl
   -Wundef dnl
+  -Wmissing-noreturn dnl
   -Wlogical-op dnl
   dnl We currently get this warning when building with Clang:
   dnl
index 2b169cb0ea52ef0db6902b6555aa9205569c371c..27e332e07b8b1ee57ed5da2979e4c8b6306e146c 100644 (file)
@@ -150,6 +150,7 @@ static void list_options(FILE *ofp)
 /*
  * clean_exit
  */
+__attribute__((noreturn))
 static void clean_exit(int code)
 {
        DBG("Clean exit");
This page took 0.0262 seconds and 4 git commands to generate.