From 51fc12171a5e9510e9eb60dc838473c3b352fee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Mon, 9 Apr 2007 23:53:06 +0200 Subject: format_arg attribute requires the function to return char*. --- m4/attributes.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/attributes.m4 b/m4/attributes.m4 index eaa788c5f..55f34c9f7 100644 --- a/m4/attributes.m4 +++ b/m4/attributes.m4 @@ -119,7 +119,7 @@ AC_DEFUN([CC_ATTRIBUTE_FORMAT_ARG], [ AC_CACHE_CHECK([if compiler supports __attribute__((format_arg(printf)))], [cc_cv_attribute_format_arg], [AC_COMPILE_IFELSE([ - void __attribute__((format_arg(1))) gettextlike(const char *fmt) { fmt = (void *)0; } + char *__attribute__((format_arg(1))) gettextlike(const char *fmt) { fmt = (void *)0; } ], [cc_cv_attribute_format_arg=yes], [cc_cv_attribute_format_arg=no]) -- cgit v1.2.3