summaryrefslogtreecommitdiff
path: root/x2jet.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-29 11:03:40 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-29 11:03:45 -0800
commita02099a6869064c8b8c04a91acf5ece8568c7389 (patch)
tree368575b1a8cac1750c39f96c97324661e8204072 /x2jet.c
parent303aa90258f0ceff98e389b226860f0d0afe4c12 (diff)
Replace gcc noreturn & printf attributes with macros from <X11/Xfuncproto.h>
Adds dependency on x11proto 7.0.17 to get the definition of _X_NORETURN Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'x2jet.c')
-rw-r--r--x2jet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/x2jet.c b/x2jet.c
index 63e3430..b5eabcc 100644
--- a/x2jet.c
+++ b/x2jet.c
@@ -72,6 +72,7 @@ from the X Consortium.
#include <stdarg.h>
#include <X11/Xlib.h>
#include <X11/XWDFile.h>
+#include <X11/Xfuncproto.h>
#include "xpr.h"
@@ -260,10 +261,7 @@ static void write_image (
enum orientation orient,
enum device device);
static void fatal_err (const char *s, ...)
-#if defined(__GNUC__) && (__GNUC__ > 2)
-__attribute__((noreturn, format(printf, 1, 2)))
-#endif
- ;
+ _X_NORETURN _X_ATTRIBUTE_PRINTF(1,2);
/* Computes the centipoint width of one printer dot. */