Re: [Vala] suppressing the "never used" warning on a method-by-method basis, at least for libraries
- From: Jens Georg <mail jensge org>
- To: vala-list gnome org
- Subject: Re: [Vala] suppressing the "never used" warning on a method-by-method basis, at least for libraries
- Date: Tue, 15 Jan 2013 09:44:33 +0100
On Mo, 2013-01-14 at 20:57 -0800, Dan Hitt wrote:
I would really like to disable only the never used warnings
(and i'd like to do it on a method-by-method basis, because,
after all, the "never used" warning is very useful).
Here's a sort of minimal example, to be put in a file called NotUsed.vala:
// Compile with:
// valac --library=lib NotUsed.vala -X -fPIC -X -shared -o lib.so
class NotUsed {
public uint method() {return 0;}
}
Declare the class "public".
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]