From f90fd0e8e5816491d8bb6ff68a250390815022ec Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 11 Nov 2011 21:52:32 +0100 Subject: [PATCH] obstack: Fix compilation error on MSVC 9. * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier. --- ChangeLog | 5 +++++ lib/obstack.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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. */ -- 2.11.0