summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 19:33:36 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 19:33:36 -0800
commitb33ad85fe9190d2ddbddb3422cc06a5a36c0cde6 (patch)
treee99be21cc26d833dbeb1ccc512043b54d02a9ffa
parentb93888eb689485d9899cbf7c224b20d68968e857 (diff)
Add printf attributes to utils.c printing functions
Doesn't find any problems, but clears -Wmissing-format-attribute warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--utils.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/utils.h b/utils.h
index 3969d9c..085c8cb 100644
--- a/utils.h
+++ b/utils.h
@@ -103,12 +103,12 @@ extern void uFree(Opaque /* ptr */);
/***====================================================================***/
extern Boolean uSetErrorFile(const char *name);
-extern void uInformation(const char *s, ...);
-extern void uAction(const char *s, ...);
-extern void uWarning(const char *s, ...);
-extern void uError(const char *s, ...);
-extern void uFatalError(const char *s, ...);
-extern void uInternalError(const char *s, ...);
+extern void uInformation(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uAction(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uWarning(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uError(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uFatalError(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uInternalError(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
/***====================================================================***/
@@ -153,8 +153,8 @@ extern char *uStringDup(const char * /* s1 */);
extern
unsigned int DEBUG_VAR;
-extern void uDebug(const char *s, ...);
-extern void uDebugNOI(const char *s, ...); /* no indent */
+extern void uDebug(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2);
+extern void uDebugNOI(const char *s, ...) _X_ATTRIBUTE_PRINTF(1,2); /* no indent */
extern Boolean uSetDebugFile(const char *name);
extern FILE *uDebugFile;
@@ -193,7 +193,7 @@ extern int uDebugIndentSize;
extern Boolean uSetEntryFile(const char *name);
-extern void uEntry(int l, const char *s, ...);
+extern void uEntry(int l, const char *s, ...) _X_ATTRIBUTE_PRINTF(2,3);
extern void uExit(int l, const char *rtVal);
extern int uEntryLevel;