summaryrefslogtreecommitdiff
path: root/fitz/fitz.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-08-16 12:56:28 +0200
committerRobin Watts <robin.watts@artifex.com>2012-08-23 15:43:59 +0100
commit293ea3cb17baf14ad935880345092fbc531ab705 (patch)
treed70941f6ccc7ccec8715fc7dcf885566a44e03c2 /fitz/fitz.h
parent90aba2b728774bf3816562ad5e5a37eaab70a1a7 (diff)
downloadmupdf-293ea3cb17baf14ad935880345092fbc531ab705.tar.xz
Silence some warnings.
Mountian Lion causes various different warnings to be given, possibly because a change to clang by default. Fix them here.
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r--fitz/fitz.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h
index dd9424a9..b4e7cee4 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -121,6 +121,11 @@ int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif
/*
+ Shut the compiler up about unused variables
+*/
+#define UNUSED(x) do { x = x; } while (0)
+
+/*
Some standard math functions, done as static inlines for speed.
People with compilers that do not adequately implement inlines may
like to reimplement these using macros.