Re: [Vala] Annoying C compiler warning



On Mon, 2007-03-05 at 17:20 +0100, Dominique Würtz wrote:
good to see the recent progress in Vala! I just want to let you know
about a non-critical but annoying warning from the C compiler when
compiling the source of the following Vala code:

interface ClassA {
      public abstract ClassA foo();
}

class ClassB : ClassA {
      public ClassA foo() {
              return this;
      }
}

public class Test {
      static int main (string[] args) {
      }
}


results in

test.c: In function 'class_b_real_foo':
test.c:28: warning: return from incompatible pointer type

If ClassA is declared as a class, everything is ok.

Thanks for the report, fixed in SVN r232.

Jürg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]