From aff84ec55d8d0cc782eaa310b9f769291799d5fd Mon Sep 17 00:00:00 2001 From: marxin Date: Fri, 22 Feb 2019 15:38:49 +0100 Subject: Fix -Wsuggest-attribute=format warnings. --- core/os/os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/os') diff --git a/core/os/os.h b/core/os/os.h index f58d607937..d6541034fd 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -148,8 +148,8 @@ public: static OS *get_singleton(); void print_error(const char *p_function, const char *p_file, int p_line, const char *p_code, const char *p_rationale, Logger::ErrorType p_type = Logger::ERR_ERROR); - void print(const char *p_format, ...); - void printerr(const char *p_format, ...); + void print(const char *p_format, ...) _PRINTF_FORMAT_ATTRIBUTE_2_3; + void printerr(const char *p_format, ...) _PRINTF_FORMAT_ATTRIBUTE_2_3; virtual void alert(const String &p_alert, const String &p_title = "ALERT!") = 0; virtual String get_stdin_string(bool p_block = true) = 0; -- cgit v1.2.3