X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=m4%2Fattribute.m4;h=9d673e969603094e0a7e878561ad805269a98e8e;hp=6a8f5558c9ef9b53a6744e03e2e507a5e48f6c06;hb=ab0576a2034b03f92943ac477e4e97731a899554;hpb=84ecc972e5c11f683ac618c5a734a17c295d9b46 diff --git a/m4/attribute.m4 b/m4/attribute.m4 index 6a8f5558..9d673e96 100644 --- a/m4/attribute.m4 +++ b/m4/attribute.m4 @@ -9,8 +9,8 @@ AC_DEFUN([tinc_ATTRIBUTE], CFLAGS="$CFLAGS -Wall -Werror" AC_COMPILE_IFELSE( [AC_LANG_SOURCE( - [void test(void) __attribute__ (($1)); - void test(void) { return; } + [void *test(void) __attribute__ (($1)); + void *test(void) { return (void *)0; } ], )], [tinc_cv_attribute_$1=yes],