[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44336] warning ("error", "all") changes "matl
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #44336] warning ("error", "all") changes "matlab-compatible" warnings if there's an "all" status before |
Date: |
Sat, 21 Feb 2015 17:00:25 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.4.0 |
URL:
<http://savannah.gnu.org/bugs/?44336>
Summary: warning ("error", "all") changes "matlab-compatible"
warnings if there's an "all" status before
Project: GNU Octave
Submitted by: carandraug
Submitted on: Sat 21 Feb 2015 17:00:24 GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Changing the state of all warnings to error, is supposed to leave
"Octave:matlab-incompatible" alone
http://hg.savannah.gnu.org/hgweb/octave/file/343ca73b1507/libinterp/corefcn/error.cc#l1515
This works fine unless there has been some change of error state that groups
them under "all". The following code is on 3.8.2 but I get the same behavior
on dev.
octave-cli-3.8.2:1> a = 1;
octave-cli-3.8.2:2> a++;
octave-cli-3.8.2:3> warning ("error", "all");
octave-cli-3.8.2:4> a++;
octave-cli-3.8.2:5> warning ("on", "all");
octave-cli-3.8.2:6> a++;
warning: potential Matlab compatibility problem: ++ used as operator
octave-cli-3.8.2:7> warning ("error", "all");
octave-cli-3.8.2:8> a++;
error: potential Matlab compatibility problem: ++ used as operator
I see two possible fixes: 1) have all the changes to 'all' warning ids skip
matlab-compatible instead of only error, 2) have error all, set
matlab-compatible to the previous state of "all".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44336>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44336] warning ("error", "all") changes "matlab-compatible" warnings if there's an "all" status before,
Carnë Draug <=