summaryrefslogtreecommitdiff
path: root/vm_debug.h
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-09-09 14:05:11 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commitdddc618d3076de2c1b27d01f106bf0bf126d4677 (patch)
tree57b13edb169ca85ce5eac81dee47147bbbefc35c /vm_debug.h
parentfd12bc1896bd4a78b9ff376fd685a009254b153f (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.h1
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);