aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-02-16 18:43:13 +0100
committerMattias Andrée <maandree@kth.se>2022-02-16 18:43:13 +0100
commit578243d68e30fe210196e05d3dcfae25cdb2464d (patch)
tree6c0052b13135bf35b87fae5f9d3134d7e5f661c6 /common.h
parentUnrolling loop of rounds does not improve performance (diff)
downloadlibar2-578243d68e30fe210196e05d3dcfae25cdb2464d.tar.gz
libar2-578243d68e30fe210196e05d3dcfae25cdb2464d.tar.bz2
libar2-578243d68e30fe210196e05d3dcfae25cdb2464d.tar.xz
Suppress warning
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/common.h b/common.h
index 8863661..958c7b0 100644
--- a/common.h
+++ b/common.h
@@ -53,6 +53,16 @@
# endif
#endif
+#ifndef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-macros"
+#endif
+#ifdef WARN_UNKNOWN_ENDIAN
+# define WARN_UNKNOWN_ENDIAN__
+#endif
+#ifndef __GNUC__
+# pragma GCC diagnostic pop
+#endif
#define LITTLE_ENDIAN__ 1234
#define BIG_ENDIAN__ 4321
@@ -69,7 +79,7 @@
# endif
#else
# ifdef __GNUC__
-# ifdef WARN_UNKNOWN_ENDIAN
+# ifdef WARN_UNKNOWN_ENDIAN__
# warning The host endian is unknown
# endif
# endif