diff options
author | marxin <mliska@suse.cz> | 2019-02-22 15:38:49 +0100 |
---|---|---|
committer | marxin <mliska@suse.cz> | 2019-02-27 06:56:50 +0100 |
commit | aff84ec55d8d0cc782eaa310b9f769291799d5fd (patch) | |
tree | 745f6a668d7ab7c97f9df6ab11b2808936749149 /core/os | |
parent | ce114e35dda4b3f282abb458f8409db2369b279e (diff) |
Fix -Wsuggest-attribute=format warnings.
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/os.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |