]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Fix "methods/extern" test with -Werror=address and gcc 5.4.0
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 Jul 2020 21:43:23 +0000 (23:43 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 17 Jul 2020 21:45:08 +0000 (23:45 +0200)
tests/methods/extern.vala

index 45ee4b3f763e98e04d9360e8dfea12975da5abde..5681b0d27322e80e615e1767aa921b8ea348cec1 100644 (file)
@@ -25,7 +25,7 @@ void main () {
        assert ("foo" == Foo.strdup ("foo"));
        assert ("foo" == Bar.strdup ("foo"));
 
-       assert (some_thing != null);
-       assert (Foo.some_thing != null);
-       assert (Bar.some_thing != null);
+       assert ((void*) some_thing != null);
+       assert ((void*) Foo.some_thing != null);
+       assert ((void*) Bar.some_thing != null);
 }