diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-27 09:23:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 09:23:26 +0100 |
commit | 372152220b177eacb44cd3df7a894574af037321 (patch) | |
tree | a4a4c5d09560dc538a3071c04554913b2415906f /core/os | |
parent | 426a6fdc17227715d397f8c09849ce0673b37e64 (diff) | |
parent | aff84ec55d8d0cc782eaa310b9f769291799d5fd (diff) |
Merge pull request #26159 from marxin/fix-Wsuggest-attribute=format
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; |