diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 14:46:18 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 14:47:22 -0700 |
commit | cc807bb858287537da97be0051318f15bf712a76 (patch) | |
tree | 8aa5ad6182e7c8921bf630577e8f1431b1161f1b | |
parent | 966e58a5522c56ad5144ad5fe51273f24e9e729e (diff) |
Add printf & noreturn attributes for static analysis
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | lndir.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index db20bcf..209d3d8 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,6 @@ XORG_DEFAULT_OPTIONS AC_SYS_LARGEFILE # Checks for pkg-config packages -PKG_CHECK_MODULES(XPROTO, xproto) +PKG_CHECK_MODULES(XPROTO, xproto >= 7.0.17) AC_OUTPUT([Makefile]) @@ -72,7 +72,7 @@ int with_revinfo = 0; /* -withrevinfo */ char *rcurdir; char *curdir; -static void +static void _X_ATTRIBUTE_PRINTF(2,3) _X_NORETURN quit (int code, const char * fmt, ...) { va_list args; @@ -83,14 +83,14 @@ quit (int code, const char * fmt, ...) exit (code); } -static void +static void _X_NORETURN quiterr (int code, const char *s) { perror (s); exit (code); } -static void +static void _X_ATTRIBUTE_PRINTF(1,2) msg (const char * fmt, ...) { va_list args; |