diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:39:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-27 20:39:48 -0700 |
commit | 7848ba1d292f55553058c1f17596baa1094cdae5 (patch) | |
tree | 53169fdb29d9e785384157ce4e4482c62befc723 /utils.h | |
parent | 8a7b707f6f841655498c753701ee38f12ba630cf (diff) |
Add printf & noreturn attributes recommended by gcc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -77,12 +77,13 @@ typedef int Comparison; /***====================================================================***/ 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) + _X_NORETURN; +extern void uInternalError(const char *s, ...) _X_ATTRIBUTE_PRINTF(1, 2); /***====================================================================***/ |