Re: [Vala] suppressing the "never used" warning on a method-by-method basis, at least for libraries



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]