[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64787] The argument validation warning does n
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #64787] The argument validation warning does not have an associated ID |
Date: |
Wed, 18 Oct 2023 17:29:16 -0400 (EDT) |
Follow-up Comment #1, bug #64787 (project octave):
There were a couple other warnings in the same file without ids, so for good
measure I changed all of them as follows. Does this change work for you?
diff -r fd5ae4140483 libinterp/parse-tree/pt-eval.cc
--- a/libinterp/parse-tree/pt-eval.cc Wed Oct 18 17:04:46 2023 -0400
+++ b/libinterp/parse-tree/pt-eval.cc Wed Oct 18 17:26:47 2023 -0400
@@ -1257,7 +1257,8 @@ tree_evaluator::visit_argument_list (tre
void
tree_evaluator::visit_arguments_block (tree_arguments_block&)
{
- warning ("function arguments validation blocks are not supported; INCORRECT
RESULTS ARE POSSIBLE");
+ warning_with_id ("Octave:function-arg-blocks-unsupported",
+ "function arguments validation blocks are not supported; INCORRECT RESULTS
ARE POSSIBLE");
}
void
@@ -2702,7 +2703,8 @@ void tree_evaluator::mlock (bool skip_fi
if (fcn->is_builtin_function ())
{
- warning ("mlock: locking built-in function has no effect");
+ warning_with_id ("Octave:lock-built-in-no-effect",
+ "mlock: locking built-in function has no effect");
return;
}
@@ -2718,7 +2720,8 @@ void tree_evaluator::munlock (bool skip_
if (fcn->is_builtin_function ())
{
- warning ("munlock: unlocking built-in function has no effect");
+ warning_with_id ("Octave:unlock-built-in-no-effect",
+ "munlock: unlocking built-in function has no
effect");
return;
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64787>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/