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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to