Silence an (otherwise harmless) very recurrent warning when building the

kernel of FreeBSD with a non-FreeBSD compiler.

Approved by:	kib (mentor)
This commit is contained in:
rmh 2011-11-04 15:34:31 +00:00
parent 5b02333e84
commit e95f384b6d

View File

@ -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