From a59538d5d57bd2f8b2101e398a97fe8466b8eef7 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Sequoia Date: Wed, 1 Jan 2014 22:43:26 -0800 Subject: Silence -Wbad-function-cast Signed-off-by: Jeremy Huddleston Sequoia --- Graphics.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Graphics.c b/Graphics.c index 43c48b9..39fea11 100644 --- a/Graphics.c +++ b/Graphics.c @@ -57,6 +57,12 @@ from The Open Group. # endif #endif +#ifdef __clang__ +/* clang doesn't like (int)floor(d) */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wbad-function-cast" +#endif + /*****************************************************************************\ * Graphics * \*****************************************************************************/ -- cgit v1.2.3