From 73f545ac0fa167aa71b1d0f78de533cf4d5978ef Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 16 Jul 2016 11:10:10 +0200 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/output.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/output.c') diff --git a/src/output.c b/src/output.c index 9e0ce43..264ad9b 100644 --- a/src/output.c +++ b/src/output.c @@ -90,6 +90,13 @@ void output_destroy(struct output* this) } + +#if defined(__clang__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wcast-align" +#endif + + /** * Marshal an output * @@ -219,6 +226,12 @@ size_t output_unmarshal(struct output* this, const void* buf) } +#if defined(__clang__) +# pragma GCC diagnostic pop +#endif + + + /** * Compare to outputs by the names of their respective CRTC:s * -- cgit v1.2.3-70-g09d2