From 7fb2cdd9eebcfdd2cdcb841f7261e7e11a65d210 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 11 Jul 2002 02:51:02 +0000 Subject: Disable format checking for NULL-passing prototypes (really only err*(), warn*(), and setproctitle() functions) to buildworld work again. This can be cleaned up later if/when a new GCC supports the feature (but personally I think it's a waste of time to keep mod'ing imported GCC sources for this since only three procedures are involved). Suggested by: peter --- sys/sys/cdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 32133f327486..d5d665aed0bf 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -175,7 +175,7 @@ #endif /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ -#if __FreeBSD_cc_version >= 300001 +#if __FreeBSD_cc_version >= 300001 && __FreeBSD_cc_version < 500003 #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) #else -- cgit v1.3