Mercurial > octave
comparison libcruft/misc/f77-fcn.c @ 15127:87411930d6c4
avoid "function declared 'noreturn' has a return statement" warning.
* configure.ac (HAVE_ATTR_DEPRECATED, HAVE_ATTR_NORETURN,
HAVE_ATTR_UNUSED): New macros, corresponding to GCC_ATTR_DEPRECATED,
GCC_ATTR_NORETURN, and GCC_ATTR_UNUSED.
* libcruft/misc/f77-fcn.c (xstopx): Use F77_NORETURN instead of
F77_RETURN.
* libcruft/misc/f77-fcn.h (F77_RETURN): New macro.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 08 Aug 2012 10:27:59 -0400 |
parents | 72c96de7a403 |
children |
comparison
equal
deleted
inserted
replaced
15126:25200c04bc25 | 15127:87411930d6c4 |
---|---|
58 if (s && slen > 0 && ! (slen == 1 && *s == ' ')) | 58 if (s && slen > 0 && ! (slen == 1 && *s == ' ')) |
59 (*current_liboctave_error_handler) ("%.*s", slen, s); | 59 (*current_liboctave_error_handler) ("%.*s", slen, s); |
60 | 60 |
61 octave_jump_to_enclosing_context (); | 61 octave_jump_to_enclosing_context (); |
62 | 62 |
63 F77_RETURN (0) | 63 F77_NORETURN (0) |
64 } | 64 } |