1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

suppress GCC's -Wsuggest-attribute=format

I was not aware of this because I use clang these days.
This commit is contained in:
卜部昌平 2021-09-09 14:05:11 +09:00
parent fd12bc1896
commit dddc618d30
Notes: git 2021-09-10 20:01:02 +09:00
6 changed files with 14 additions and 2 deletions

View file

@ -87,6 +87,7 @@ extern enum ruby_debug_log_mode {
ruby_debug_log_file = 0x04,
} ruby_debug_log_mode;
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 4, 5)
void ruby_debug_log(const char *file, int line, const char *func_name, const char *fmt, ...);
void ruby_debug_log_print(unsigned int n);
bool ruby_debug_log_filter(const char *func_name);