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

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

[Octave-bug-tracker] [bug #66647] num2str gives an unexpected warning ab


From: anonymous
Subject: [Octave-bug-tracker] [bug #66647] num2str gives an unexpected warning about concatenation
Date: Fri, 10 Jan 2025 04:14:18 -0500 (EST)

Follow-up Comment #5, bug #66647 (group octave):

Hi Dmitri and Rik. Thank you for your responses. It seems to me that an
upgrade to the current stable branch wouldn't have solved this particular
issue, but next time, I'll check on different versions before filing a bug
report. Thank you for the pointer.

Indeed, 'Octave:mixed-string-concat' got inadvertantly set to 'on' in a script
that I had run previously. There was a 

warning on

statement in a part that I wrote 15 years ago, which I hadn't noticed.

warning ('off', 'Octave:mixed-string-concat')

prevents the warning from coming up. I'm glad to know the root cause now:
functions not returning the same type, as you explained in the Discourse
topic. 

I can now no longer reproduce the warning after plot(1:10). I ran the same
code that I was working on previously an that didn't make the warning come up
again.


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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