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:
parent
0c936d9089
commit
1912fd3a42
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue