Suppress a warning in abstract_typedef unit test

Use an explicit cast to cast from derived to base, there is no better solution
currently.
This commit is contained in:
Vadim Zeitlin 2016-04-24 22:41:24 +02:00
commit 1912fd3a42

View file

@ -6,7 +6,7 @@ int main(int argc, const char *argv[]) {
Engine *e = Engine_new();
A *a = A_new();
assert(AbstractBaseClass_write(a, e) == true);
assert(AbstractBaseClass_write((AbstractBaseClass*)a, e) == true);
A_delete(a);
Engine_delete(e);