changeset 27593:a2db1e36e9b2

Silence compiler warning about use of error() without format string. * interpreter.cc (Fquit): Call 'error ("%s", msg)' rather than 'error (msg)' to suppress compiler warning.
author Rik <rik@octave.org>
date Wed, 30 Oct 2019 15:19:07 -0700
parents 637279c8caba
children e091e09d26f0
files libinterp/corefcn/interpreter.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc	Wed Oct 30 13:52:27 2019 -0400
+++ b/libinterp/corefcn/interpreter.cc	Wed Oct 30 15:19:07 2019 -0700
@@ -202,7 +202,7 @@
           else if (opt == "force")
             force = true;
           else
-            error (msg);
+            error ("%s", msg);
         }
       else
         exit_status = args(0).xnint_value ("quit: STATUS must be an integer");