소스 검색

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]
xfx 7 년 전
부모
커밋
e909f800d0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      include/core/Defs.hpp

+ 2 - 2
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