summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-08 20:38:10 +0200
committerMattias Andrée <maandree@kth.se>2021-09-08 20:38:10 +0200
commitfdca119565bb551ed327d7440cc1cc29264d6254 (patch)
tree8de20d3b6eb395144d57f52d3cb00a1439efe120 /common.h
parentm (diff)
downloadlibnumtext-fdca119565bb551ed327d7440cc1cc29264d6254.tar.gz
libnumtext-fdca119565bb551ed327d7440cc1cc29264d6254.tar.bz2
libnumtext-fdca119565bb551ed327d7440cc1cc29264d6254.tar.xz
Suppress warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common.h b/common.h
index e23ebb7..7fb6784 100644
--- a/common.h
+++ b/common.h
@@ -21,6 +21,12 @@
# define FALL_THROUGH
#endif
+#if defined(__GNUC__)
+# define PURE __attribute__((pure))
+#else
+# define PURE
+#endif
+
#define UNICODE_MINUS "−"