octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55046] Crash with trivial script on dev


From: Kai Torben Ohlhus
Subject: [Octave-bug-tracker] [bug #55046] Crash with trivial script on dev
Date: Wed, 21 Nov 2018 03:41:21 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

Follow-up Comment #10, bug #55046 (project octave):

Using the technique of comment #9, I discovered other spots like that found by
Rik:


libinterp/corefcn/graphics.h:1331:47: warning: format ‘%s’ expects a
matching ‘char*’ argument [-Wformat=]
       error ("%s: property has no radio value");

libinterp/parse-tree/bp-table.cc:335:70: warning: format ‘%s’ expects a
matching ‘char*’ argument [-Wformat=]
               error ("%s: line number must come before 'if' clause\n");
                                                                      ^
libinterp/parse-tree/bp-table.cc:349:70: warning: format ‘%s’ expects a
matching ‘char*’ argument [-Wformat=]
               error ("%s: line number must come before 'if' clause\n");
                                                                      ^
libinterp/parse-tree/bp-table.cc:372:57: warning: format ‘%s’ expects a
matching ‘char*’ argument [-Wformat=]
                          args(pos).type_name ().c_str ());
                                                         ^

libinterp/corefcn/data.cc:622:46: warning: format ‘%d’ expects argument of
type ‘int’, but argument 3 has type ‘const char*’ [-Wformat=]
                args(1).class_name ().c_str ());
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

libinterp/corefcn/data.cc: In function ‘octave_value_list Fmod(const
octave_value_list&, int)’:
libinterp/corefcn/data.cc:801:46: warning: format ‘%d’ expects argument of
type ‘int’, but argument 3 has type ‘const char*’ [-Wformat=]
                args(1).class_name ().c_str ());
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

libinterp/corefcn/variables.cc: In function ‘octave_value
set_internal_variable(double&, const octave_value_list&, int, const char*,
double, double)’:
libinterp/corefcn/variables.cc:701:62: warning: format ‘%s’ expects
argument of type ‘char*’, but argument 2 has type ‘double’
[-Wformat=]
         error ("%s: argument must be greater than %g", minval);
                                                              ^
libinterp/corefcn/variables.cc:703:71: warning: format ‘%s’ expects
argument of type ‘char*’, but argument 2 has type ‘double’
[-Wformat=]
         error ("%s: argument must be less than or equal to %g", maxval);
                                                                       ^


But also "noise" (or potential source of error) like


libinterp/parse-tree/pt-eval.cc:2306:37: warning: format ‘%d’ expects
argument of type ‘int’, but argument 2 has type ‘octave_idx_type {aka
long int}’ [-Wformat=]
                                  k+1);


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55046>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]