# HG changeset patch # User Rik # Date 1522646184 25200 # Node ID d3baac355a2cc2c4d3d642c6e12b0a0388bbda93 # Parent 699fe9cd51ca97c49920d9f7fc741d76d2561072 GLCanvas.cc: Catch exception by reference to silence -Wcatch-value warning (bug #53545). * GLCanvas.cc (do_print): Change catch block to catch reference to octave::execution_exception. diff -r 699fe9cd51ca -r d3baac355a2c libgui/graphics/GLCanvas.cc --- a/libgui/graphics/GLCanvas.cc Sun Apr 01 22:06:24 2018 -0700 +++ b/libgui/graphics/GLCanvas.cc Sun Apr 01 22:16:24 2018 -0700 @@ -138,7 +138,7 @@ octave::gl2ps_print (figObj, file_cmd.toStdString (), term.toStdString ()); } - catch (octave::execution_exception e) + catch (octave::execution_exception& e) { octave_link::post_exception (std::current_exception ()); end_rendering ();