Mercurial > octave
changeset 26606:884fdd6c9210
fix declaration of warn_divide_by_zero deprecation wrapper (bug #46650)
* errwarn.h (warn_divide_by_zero): Make function declaration inline and
conform to Octave coding style.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 22 Jan 2019 23:46:33 -0800 |
parents | 5224600b1b20 |
children | 0f187a956d47 |
files | libinterp/corefcn/errwarn.h |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/errwarn.h Tue Jan 22 23:54:51 2019 +0000 +++ b/libinterp/corefcn/errwarn.h Tue Jan 22 23:46:33 2019 -0800 @@ -184,8 +184,10 @@ #if defined (OCTAVE_USE_DEPRECATED_FUNCTIONS) -OCTAVE_DEPRECATED (6, "do not use 'Octave:divide-by-zero'") -OCTINTERP_API extern void warn_divide_by_zero (void) {} +OCTAVE_DEPRECATED (6, "this function will be removed in a future version of Octave") +inline void +warn_divide_by_zero (void) +{ } #endif