]> Savannah Git Hosting - gnulib.git/commitdiff
obstack: Fix a clang warning.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 12:37:13 +0000 (14:37 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 12:37:13 +0000 (14:37 +0200)
* lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.

ChangeLog
lib/obstack.c

index 3c87058ee1fe9c75bc8971e37d58bb45d6bc5c2f..9634c0a2ee681c5ef982e265435eb450c2b7be95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-18  Bruno Haible  <bruno@clisp.org>
+
+       obstack: Fix a clang warning.
+       * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
+
 2020-10-16  Bruno Haible  <bruno@clisp.org>
 
        hash: Rename hash_delete to hash_remove.
index 6e82da054c715a84d54e19d3aa6d66d83007dee6..e6475a2a099b0abd9bf29f9c6dfdb72931148f7c 100644 (file)
@@ -326,7 +326,7 @@ int obstack_exit_failure = EXIT_FAILURE;
 #   include <libio/iolibio.h>
 #  endif
 
-static _Noreturn void
+static __attribute_noreturn__ void
 print_and_abort (void)
 {
   /* Don't change any of these strings.  Yes, it would be possible to add