SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
23
stars
19
forks
source link
Octave subsref warnings: warning: 'uint64 matrix' object indexed with empty index list #99
Open
KrisThielemans opened 2 years ago
96 reinstated the
subsref
functions inSwigref.m
. However, when running the test-suite with recent Octave, it generates lots of warnings likean example is generated at https://github.com/jaeandersson/swig/blob/cd3f6c5fe9ed273fcc981dcae3e8b50d51529664/Examples/test-suite/matlab/default_args_runme.m#L18 This turns out to come from the following line in
SwigRef.m
(generated here)It is caused by the empty cell-array for
()
. The warning can be reproduced as followsThis does returns 1 but with the same warning (but is silent in MATLAB).
The simple solution seems to use
which has the desired effect