[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Is it possible to turn off warning message?
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Is it possible to turn off warning message? |
Date: |
Tue, 12 Jan 2010 19:32:51 +0100 |
If you use R, then this can be done with
options(warn=-1)
This turns off all warnings, though, not just igraph-related ones.
Best,
Gabor
On Tue, Jan 12, 2010 at 7:00 PM, Tamas Nepusz <address@hidden> wrote:
>> A quick question, Is it possible to turn off the message output by
>> IGRAPH_WARNING macro?
> Yes, there is, although it is not documented (and I don't know why). There's
> a function called igraph_set_warning_handler which you can use to override
> igraph's default behaviour:
>
> void igraph_warning_handler_ignore(const char*, const char*, int, int) {}
> [...]
> igraph_set_warning_handler(igraph_warning_handler_ignore);
>
> --
> Tamas
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> UNIL DGM