Date: Fri, 4 Nov 2011 15:34:31 +0000 (UTC) From: Robert Millan <rmh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227082 - head/sys/sys Message-ID: <201111041534.pA4FYVXB023952@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rmh Date: Fri Nov 4 15:34:31 2011 New Revision: 227082 URL: http://svn.freebsd.org/changeset/base/227082 Log: Silence an (otherwise harmless) very recurrent warning when building the kernel of FreeBSD with a non-FreeBSD compiler. Approved by: kib (mentor) Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h ============================================================================== --- head/sys/sys/cdefs.h Fri Nov 4 13:36:02 2011 (r227081) +++ head/sys/sys/cdefs.h Fri Nov 4 15:34:31 2011 (r227082) @@ -349,7 +349,8 @@ #endif /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ -#if __FreeBSD_cc_version >= 300001 && defined(__GNUC__) && !defined(__INTEL_COMPILER) +#if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version >= 300001 && \ + defined(__GNUC__) && !defined(__INTEL_COMPILER) #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) #else
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111041534.pA4FYVXB023952>