]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
coverage.h: mark _exit as noreturn
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 1 Dec 2023 07:59:22 +0000 (08:59 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 1 Dec 2023 08:00:06 +0000 (09:00 +0100)
Otherwise the compiler may complain:

././include/coverage.h: In function ‘_coverage__exit’:
././include/coverage.h:22:1: error: ‘noreturn’ function does return [-Werror]
   22 | }

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/coverage.h

index f0148e5791aea7f62861afa5c06978c6320b64e7..8ca5b68bdfeaaea907d93065270876503d7c9297 100644 (file)
@@ -14,7 +14,7 @@
  * when built with --coverage/-Db_coverage=true)
  */
 void __gcov_dump(void);
-void _exit(int);
+__attribute__((noreturn)) void _exit(int);
 
 __attribute__((noreturn)) static inline void _coverage__exit(int status) {
         __gcov_dump();