# HG changeset patch # User Rik # Date 1356673415 28800 # Node ID fb756e8d66202a6b07d8f135277c7eeab93ab06c # Parent 715d324b1b7292205adf85cfe4d2bb105a968540 Silence compilation warning in ov-java.h. * libinterp/octave-value/ov-java.h(print, print_raw): Move function bodies to ov-java.cc. Leave only prototypes in .h file. * libinterp/octave-value/ov-java.cc(print, print_raw): Function bodies moved from ov-java.h. diff -r 715d324b1b72 -r fb756e8d6620 libinterp/octave-value/ov-java.cc --- a/libinterp/octave-value/ov-java.cc Thu Dec 27 19:58:09 2012 -0800 +++ b/libinterp/octave-value/ov-java.cc Thu Dec 27 21:43:35 2012 -0800 @@ -178,6 +178,19 @@ std::list java_opts; }; +void +octave_java::print (std::ostream& os, bool) const +{ + print_raw (os); + newline (os); +} + +void +octave_java::print_raw (std::ostream& os, bool) const +{ + os << ""; +} + static dim_vector compute_array_dimensions (JNIEnv* jni_env, jobject obj); #ifdef __WIN32__ diff -r 715d324b1b72 -r fb756e8d6620 libinterp/octave-value/ov-java.h --- a/libinterp/octave-value/ov-java.h Thu Dec 27 19:58:09 2012 -0800 +++ b/libinterp/octave-value/ov-java.h Thu Dec 27 21:43:35 2012 -0800 @@ -149,16 +149,9 @@ dim_vector dims (void) const; - void print (std::ostream& os, bool pr_as_read_syntax = false) const - { - os << ""; - newline(os); - } + void print (std::ostream& os, bool pr_as_read_syntax = false) const; - void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const - { - print(os, pr_as_read_syntax); - } + void print_raw (std::ostream& os, bool pr_as_read_syntax = false) const; octave_value_list subsref (const std::string& type,