From ef99c2a6db4c6994d574ccd8ac4678798242eca1 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 25 Nov 2019 21:05:35 -0800 Subject: [PATCH] Avoid warning from clang-cl about unrecognized pragma --- include/wx/defs.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/defs.h b/include/wx/defs.h index a1c2ea5b15..2bb24814fd 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -328,6 +328,9 @@ typedef short int WXTYPE; #define wx_truncate_cast(t, x) wx_truncate_cast_impl(x) +#elif defined(__clang__) + #define wx_truncate_cast(t, x) static_cast(x) + #elif defined(__VISUALC__) && __VISUALC__ >= 1310 template inline T wx_truncate_cast_impl(X x)