Mercurial > octave
changeset 20984:167c536419a7
deprecate C++ usage function
* error.h (usage, vusage): Tag with GCC_ATTR_DEPRECATED.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 25 Dec 2015 07:37:59 -0500 |
parents | 004fa31be0b7 |
children | 8a43428e13b2 |
files | libinterp/corefcn/error.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/error.h Fri Dec 25 08:09:11 2015 -0500 +++ b/libinterp/corefcn/error.h Fri Dec 25 07:37:59 2015 -0500 @@ -43,8 +43,8 @@ extern OCTINTERP_API void message (const char *name, const char *fmt, ...); -extern OCTINTERP_API void vusage (const char *fmt, va_list args) GCC_ATTR_NORETURN; -extern OCTINTERP_API void usage (const char *fmt, ...) GCC_ATTR_NORETURN; +extern OCTINTERP_API void vusage (const char *fmt, va_list args) GCC_ATTR_NORETURN GCC_ATTR_DEPRECATED; +extern OCTINTERP_API void usage (const char *fmt, ...) GCC_ATTR_NORETURN GCC_ATTR_DEPRECATED; extern OCTINTERP_API void vwarning (const char *fmt, va_list args); extern OCTINTERP_API void warning (const char *fmt, ...);