Disable warnings

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Disable warnings

fepa
Hello,

There are a couple of warnings I want to desable without having to issue
the general command

warning('off','all');

Is there a list where I can see what the string identifications of the
following warnings?


warning: load: file found in load path

warning: quadgk: maximum interval count (650) met
warning: quadgk: Error tolerance not met. Estimated error 2.7601e-12


Thank you very much in advance!

Fabián


------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Octave-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev
Reply | Threaded
Open this post in threaded view
|

Re: Disable warnings

Carnë Draug-2
Hi

you have come to the octave forge mailing list. Your query belongs to
octave core mailing list. CC'ing it.

On 28 October 2012 01:00,  <[hidden email]> wrote:

> Hello,
>
> There are a couple of warnings I want to desable without having to issue
> the general command
>
> warning('off','all');
>
> Is there a list where I can see what the string identifications of the
> following warnings?
>
>
> warning: load: file found in load path
>
> warning: quadgk: maximum interval count (650) met
> warning: quadgk: Error tolerance not met. Estimated error 2.7601e-12
>
>
> Thank you very much in advance!
>
> Fabián

I don't think that is possible. These warnings are in quadgk.m and
have no ID. I'm guessing that if you really want to, you can do it in
your system only by editing the source and add one yourself. Then you
could disable them.

Of you can turn all warnings locally by using a unwind protect block:

warn_state = warning ("query", "all");
unwind_protect
  warning ("off", "all");
  ## your code goes here
unwind_protect_cleanup
  warning (warn_state);
end_unwind_protect


Carnë

------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Octave-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev