changeset 16077:5168b3ab1d02

obstack: Fix compilation error on MSVC 9. * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
author Bruno Haible <bruno@clisp.org>
date Fri, 11 Nov 2011 21:52:32 +0100
parents 34f07bcc4983
children 573c1dd32a43
files ChangeLog lib/obstack.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/obstack.c
+++ b/lib/obstack.c
@@ -87,7 +87,7 @@
    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.  */