changeset 33361:a5217e6ed309

* ov-java.cc (error_unexpected): Only define if HAVE_JAVA is not undefined.
author John W. Eaton <jwe@octave.org>
date Mon, 08 Apr 2024 19:39:04 -0400
parents f16bc277b3fd
children 2949b89f9711
files libinterp/octave-value/ov-java.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-java.cc	Mon Apr 08 10:37:05 2024 -0400
+++ b/libinterp/octave-value/ov-java.cc	Mon Apr 08 19:39:04 2024 -0400
@@ -904,7 +904,7 @@
   return env;
 }
 
-#endif
+#else
 
 OCTAVE_NORETURN static void
 error_unexpected (const char *name)
@@ -912,6 +912,8 @@
   error ("unexpected call to %s when HAVE_JAVA is not defined - please report this bug", name);
 }
 
+#endif
+
 bool
 octave_java::is_java_string () const
 {