[Vala] Annoying C compiler warning
- From: Dominique Würtz <housirer gmx de>
- To: vala paldo org
- Subject: [Vala] Annoying C compiler warning
- Date: Mon, 05 Mar 2007 17:20:53 +0100
Hi,
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.
Dominique
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]