X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=m4%2Fattribute.m4;h=9d673e969603094e0a7e878561ad805269a98e8e;hp=58b8346723f1ba7bf7d25c02530da2579f703a4b;hb=d2f8d0920226e4d8edd3efa3c18b46b783aacea0;hpb=da3078c63a3b658573f6e2f986f69ed4d7993b3a diff --git a/m4/attribute.m4 b/m4/attribute.m4 index 58b83467..9d673e96 100644 --- a/m4/attribute.m4 +++ b/m4/attribute.m4 @@ -1,7 +1,7 @@ dnl Check to find out whether function attributes are supported. dnl If they are not, #define them to be nothing. -AC_DEFUN(tinc_ATTRIBUTE, +AC_DEFUN([tinc_ATTRIBUTE], [ AC_CACHE_CHECK([for working $1 attribute], tinc_cv_attribute_$1, [ @@ -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],