summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 14:46:18 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 14:47:22 -0700
commitcc807bb858287537da97be0051318f15bf712a76 (patch)
tree8aa5ad6182e7c8921bf630577e8f1431b1161f1b
parent966e58a5522c56ad5144ad5fe51273f24e9e729e (diff)
Add printf & noreturn attributes for static analysis
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--lndir.c6
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])
diff --git a/lndir.c b/lndir.c
index f0f305a..6a8d950 100644
--- a/lndir.c
+++ b/lndir.c
@@ -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;