Date: Thu, 28 Jul 2011 23:28:31 GMT From: Robert Millan <rmh@debian.org> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/159279: [PATCH] __FreeBSD_cc_version in <sys/cdefs.h> Message-ID: <201107282328.p6SNSVFZ033041@red.freebsd.org> Resent-Message-ID: <201107282330.p6SNU9Xn029747@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 159279 >Category: kern >Synopsis: [PATCH] __FreeBSD_cc_version in <sys/cdefs.h> >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jul 28 23:30:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Robert Millan >Release: Debian GNU/kFreeBSD "sid" >Organization: >Environment: >Description: This patch fixes a (harmless) warning when <sys/cdefs.h> is parsed by upstream version of GCC. See also: http://lists.freebsd.org/pipermail/freebsd-hackers/2011-July/035762.html >How-To-Repeat: >Fix: Patch attached with submission follows: Index: sys/sys/cdefs.h =================================================================== --- sys/sys/cdefs.h (revision 223736) +++ sys/sys/cdefs.h (working copy) @@ -349,7 +349,7 @@ #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 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107282328.p6SNSVFZ033041>