From: Bruno Haible Date: Fri, 11 Nov 2011 20:52:32 +0000 (+0100) Subject: obstack: Fix compilation error on MSVC 9. X-Git-Tag: v0.1~1449 X-Git-Url: http://erislabs.net/gitweb/?p=gnulib.git;a=commitdiff_plain;h=f90fd0e8e5816491d8bb6ff68a250390815022ec obstack: Fix compilation error on MSVC 9. * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier. --- diff --git a/ChangeLog b/ChangeLog index d35f6c6f2..6b67bd8bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-11-11 Bruno Haible + + obstack: Fix compilation error on MSVC 9. + * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier. + 2011-11-11 Jim Meyering test-exclude: skip tests rather than failing on deficient systems diff --git a/lib/obstack.c b/lib/obstack.c index a73d6edb2..47492ccc4 100644 --- a/lib/obstack.c +++ b/lib/obstack.c @@ -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. */