Commit 28f2b56d authored by Rusty Russell's avatar Rusty Russell

array_size: fix spurious test fail with gcc-5

It now warns about sizeof(function-param-not-really-an-array).
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 1f7028e9
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment