diff options
author | 卜部昌平 <[email protected]> | 2021-09-09 14:05:11 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2021-09-10 20:00:06 +0900 |
commit | dddc618d3076de2c1b27d01f106bf0bf126d4677 (patch) | |
tree | 57b13edb169ca85ce5eac81dee47147bbbefc35c /vm_debug.h | |
parent | fd12bc1896bd4a78b9ff376fd685a009254b153f (diff) |
suppress GCC's -Wsuggest-attribute=format
I was not aware of this because I use clang these days.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'vm_debug.h')
-rw-r--r-- | vm_debug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_debug.h b/vm_debug.h index a3631c0309..2840e70646 100644 --- a/vm_debug.h +++ b/vm_debug.h @@ -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); |