changeset 27536:d389416f0e50

remove OCTAVE_DEPRECTED tags from enum values (bug #57092) * quit.h (enum octave_exception): Remove OCTAVE_DEPRECATED warning from enum values.
author John W. Eaton <jwe@octave.org>
date Mon, 21 Oct 2019 11:50:20 -0400
parents 303df1e804d4
children 7dc31256c5e4
files liboctave/util/quit.h
diffstat 1 files changed, 8 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/util/quit.h	Mon Oct 21 16:23:52 2019 +0100
+++ b/liboctave/util/quit.h	Mon Oct 21 11:50:20 2019 -0400
@@ -197,24 +197,17 @@
 
 #endif
 
+  // The following enum values are deprecated and will eventually be
+  // removed from Octave, but there seems to be no universally good way
+  // to tag them with an attribute that will generate a warning.
+
 enum
 octave_exception
 {
-  octave_no_exception
-  OCTAVE_DEPRECATED (6, "the 'octave_no_exception' enum value is an obsolete internal value; any uses should be removed")
-  = 0,
-
-  octave_exec_exception
-  OCTAVE_DEPRECATED (6, "the 'octave_exec_exception' enum value is an obsolete internal value; any uses should be removed")
-  = 1,
-
-  octave_alloc_exception
-  OCTAVE_DEPRECATED (6, "the 'octave_alloc_exception' enum value is an obsolete internal value; any uses should be removed")
-  = 3,
-
-  octave_quit_exception
-  OCTAVE_DEPRECATED (6, "the 'octave_quit_exception' enum value is an obsolete internal value; any uses should be removed")
-   = 4
+  octave_no_exception = 0,
+  octave_exec_exception = 1,
+  octave_alloc_exception = 3,
+  octave_quit_exception = 4
 };
 
 /*