Use GCC format and sentinel attributes on appropriate functions
commite7680876c48d0f5470b72f3f51fa13f72122b19e
authorJosh Triplett <josh@freedesktop.org>
Sat, 10 Mar 2007 00:32:16 +0000 (9 16:32 -0800)
committerJosh Triplett <josh@freedesktop.org>
Sat, 10 Mar 2007 00:32:16 +0000 (9 16:32 -0800)
tree8c5fd8fadac609318810b8f06e826c746320f54a
parentcef10da343e842f6b55f5a26d55aaec5b55bd184
Use GCC format and sentinel attributes on appropriate functions

Expose the FORMAT_ATTR portability macro in lib.h, and use it on the various
printf-like functions in sparse.

Add a new SENTINEL_ATTR portability macro for the GCC sentinel attribute, and
use it on match_idents in parse.c.

match_oplist in expression.c should use SENTINEL_ATTR, but GCC does not accept
an integer 0 as a sentinel, only a pointer 0 like NULL.

Signed-off-by: Josh Triplett <josh@freedesktop.org>
compile-i386.c
example.c
lib.h
parse.c
show-parse.c