diff options
author | Bruno Haible <bruno@clisp.org> | 2011-11-11 21:52:32 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-11-11 21:52:32 +0100 |
commit | f90fd0e8e5816491d8bb6ff68a250390815022ec (patch) | |
tree | 7756cc9004a6caadf581fafdd09c320b95037fb2 | |
parent | 39a489fa27ab3873e0fc0f65844413f46fcb2117 (diff) | |
download | gnulib-f90fd0e8e5816491d8bb6ff68a250390815022ec.tar.gz |
obstack: Fix compilation error on MSVC 9.
* lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/obstack.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 diff --git a/lib/obstack.c b/lib/obstack.c index a73d6edb26..47492ccc4b 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. */ |