summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-31 15:20:54 (GMT)
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-31 15:20:54 (GMT)
commitae83c35b90d9f144f02506b9fceda6fd51f98839 (patch)
tree7e8f773cb569742cb8a5683b79205f26bfe79d01 /addr2line.c
parente4aca2243af34fd57051a75300b7e25156508965 (diff)
Add PRINTF_ARGS to kprintf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index 6028a2a..fbe6475 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -9,6 +9,7 @@
**********************************************************************/
#include "ruby/config.h"
+#include "ruby/defines.h"
#include "ruby/missing.h"
#include "addr2line.h"
@@ -104,7 +105,7 @@ void *alloca();
#define SHF_COMPRESSED 0
#endif
-static int kprintf(const char *fmt, ...);
+PRINTF_ARGS(static int kprintf(const char *fmt, ...), 1, 2);
typedef struct {
const char *dirname;