diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-16 11:10:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-16 11:10:10 +0200 |
commit | 73f545ac0fa167aa71b1d0f78de533cf4d5978ef (patch) | |
tree | 4942d780580622c65e276d3cfb50a1aa5274dd3e /src/ring.c | |
parent | m (diff) | |
download | coopgammad-73f545ac0fa167aa71b1d0f78de533cf4d5978ef.tar.gz coopgammad-73f545ac0fa167aa71b1d0f78de533cf4d5978ef.tar.bz2 coopgammad-73f545ac0fa167aa71b1d0f78de533cf4d5978ef.tar.xz |
Fix warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/ring.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -47,6 +47,13 @@ void ring_destroy(struct ring* this) } + +#if defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wcast-align" +#endif + + /** * Marshal a ring buffer * @@ -103,6 +110,12 @@ size_t ring_unmarshal(struct ring* this, const void* buf) } +#if defined(__clang__) +# pragma GCC diagnostic pop +#endif + + + /** * Append data to a ring buffer * |