obstack: Fix compilation error on MSVC 9.
authorBruno Haible <bruno@clisp.org>
Fri, 11 Nov 2011 20:52:32 +0000 (21:52 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 11 Nov 2011 20:52:32 +0000 (21:52 +0100)
* lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.

ChangeLog
lib/obstack.c

index d35f6c6..6b67bd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-11  Bruno Haible  <bruno@clisp.org>
+
+       obstack: Fix compilation error on MSVC 9.
+       * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
+
 2011-11-11  Jim Meyering  <meyering@redhat.com>
 
        test-exclude: skip tests rather than failing on deficient systems
index a73d6ed..47492cc 100644 (file)
@@ -87,7 +87,7 @@ enum
    abort gracefully or use longjump - but shouldn't return.  This
    variable by default points to the internal function
    `print_and_abort'.  */
-static void print_and_abort (void);
+static _Noreturn void print_and_abort (void);
 void (*obstack_alloc_failed_handler) (void) = print_and_abort;
 
 /* Exit value used when `print_and_abort' is used.  */