diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-16 18:43:13 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-16 18:43:13 +0100 |
commit | 578243d68e30fe210196e05d3dcfae25cdb2464d (patch) | |
tree | 6c0052b13135bf35b87fae5f9d3134d7e5f661c6 /common.h | |
parent | Unrolling loop of rounds does not improve performance (diff) | |
download | libar2-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 '')
-rw-r--r-- | common.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |