# HG changeset patch # User John W. Eaton # Date 1712619544 14400 # Node ID a5217e6ed3091256c619bc81774cc8b0990aa433 # Parent f16bc277b3fdbec7e3749bf0fba6fa312e27b028 * ov-java.cc (error_unexpected): Only define if HAVE_JAVA is not undefined. diff -r f16bc277b3fd -r a5217e6ed309 libinterp/octave-value/ov-java.cc --- 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 {