]> git.ozlabs.org Git - ccan/blobdiff - ccan/array_size/test/compile_fail-function-param.c
array_size: fix spurious test fail with gcc-5
[ccan] / ccan / array_size / test / compile_fail-function-param.c
index cb64d984247bc0a374c4d454968af5df8882958f..48697e044ec797ada4e6c77cddc91159363975db 100644 (file)
@@ -5,8 +5,8 @@ struct foo {
        unsigned int a, b;
 };
 
-int check_parameter(const struct foo array[4]);
-int check_parameter(const struct foo array[4])
+int check_parameter(const struct foo *array);
+int check_parameter(const struct foo *array)
 {
 #ifdef FAIL
        return (ARRAY_SIZE(array) == 4);