Date: Fri, 01 Dec 2000 13:49:03 +1100 From: Peter Jeremy <peter.jeremy@alcatel.com.au> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: audit@FreeBSD.ORG Subject: Re: gcc __attributes for format strings Message-ID: <20001201134903.H1474@gsmx07.alcatel.com.au> In-Reply-To: <200011271604.eARG49V29464@troutmask.apl.washington.edu>; from sgk@troutmask.apl.washington.edu on Mon, Nov 27, 2000 at 08:04:09AM -0800 References: <20001126222048.A46809@citusc17.usc.edu> <200011271604.eARG49V29464@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2000-Nov-27 08:04:09 -0800, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote: >Kris Kennaway wrote: >> Okay, looks like we can play with some gcc attributes to flag things >> as format strings. For example: >> > >[snip] > >> We need to go through and prototype functions appropriately (in >> headers, or internally) - I think it's possible to fix all of the >> -Wnon-const-format warnings this way. > >Are gcc attributes C89 or C99 features? If not, you probably >want to ask bde about sprinkling gcc only features throughout >the header files. In general, gcc attributes are not directly put in the code. Rather there are a series of macros in <sys/cdefs.h> which map 4.4BSD attributes onto compiler-specific attributes. If we move to a different compiler, we just need to change cdefs.h Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001201134903.H1474>