X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=m4%2Fattribute.m4;h=9d673e969603094e0a7e878561ad805269a98e8e;hp=6a8f5558c9ef9b53a6744e03e2e507a5e48f6c06;hb=a7722e1a65ab2e5d538fefe1c8b3352ddcc38213;hpb=5046dbd40c7cc572b84f28412723934bf392cb0d 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],