From e909f800d098423b6c8c798a1ecf4fac3ad1b442 Mon Sep 17 00:00:00 2001 From: xfx Date: Sat, 6 Oct 2018 07:33:05 +0800 Subject: [PATCH] Fix compile error of 'WARN_PRINT' and 'ERR_PRINT'. cannot pass non-trivial object of type 'godot::String' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs] --- include/core/Defs.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/core/Defs.hpp b/include/core/Defs.hpp index a27e1579..e71525a5 100644 --- a/include/core/Defs.hpp +++ b/include/core/Defs.hpp @@ -113,7 +113,7 @@ typedef float real_t; #endif #ifndef WARN_PRINTS -#define WARN_PRINTS(msg) WARN_PRINT(msg.utf8().get_data()) +#define WARN_PRINTS(msg) WARN_PRINT((msg).utf8().get_data()) #endif #ifndef ERR_PRINT @@ -121,7 +121,7 @@ typedef float real_t; #endif #ifndef ERR_PRINTS -#define ERR_PRINTS(msg) ERR_PRINT(msg.utf8().get_data()) +#define ERR_PRINTS(msg) ERR_PRINT((msg).utf8().get_data()) #endif #ifndef ERR_FAIL