summaryrefslogtreecommitdiff
path: root/include/ruby/missing.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 /include/ruby/missing.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 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 145c5a125c..1e97e294f1 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -38,6 +38,7 @@
#endif
#include "ruby/internal/dllexport.h"
+#include "ruby/internal/attr/format.h"
#ifndef M_PI
# define M_PI 3.14159265358979323846
@@ -211,6 +212,7 @@ RUBY_EXTERN int ruby_close(int);
#endif
#ifndef HAVE_SETPROCTITLE
+RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 1, 2)
RUBY_EXTERN void setproctitle(const char *fmt, ...);
#endif