svn commit: r227082 - head/sys/sys
Robert Millan
rmh at FreeBSD.org
Fri Nov 4 15:34:32 UTC 2011
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
More information about the svn-src-all
mailing list