changeset 29976:c44c72cc68a0

fix inline/extern declaration error in previous change * error.h (warning_enabled): Declare deprecated wrapper function inline, not extern.
author John W. Eaton <jwe@octave.org>
date Tue, 17 Aug 2021 00:13:44 -0400
parents 06bf5aca68bb
children 0d67814eb038
files libinterp/corefcn/error.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/error.h	Mon Aug 16 11:45:40 2021 -0700
+++ b/libinterp/corefcn/error.h	Tue Aug 17 00:13:44 2021 -0400
@@ -549,7 +549,7 @@
 }
 
 OCTAVE_DEPRECATED (7, "use 'octave::warning_enabled' instead")
-extern OCTINTERP_API int warning_enabled (const std::string& id)
+inline OCTINTERP_API int warning_enabled (const std::string& id)
 {
   return octave::warning_enabled (id);
 }