summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-02 01:50:23 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-02 01:50:23 +0000
commitdea842299275d051d15d64eb9061b88fed89ebac (patch)
tree4c6230ba392802d49c979d41bd5afb835fff5389
parentb3fb892dbad2b0e809d3dd40d9e6bd7e25cdf218 (diff)
get rid of a compiler warning of VC
* mjit.c (exec_prcess): use PRI_PIDT_PREFIX for pid. * win32/Makefile.sub (PRI_PIDT_PREFIX): force to "I". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--mjit.c2
-rw-r--r--win32/Makefile.sub2
2 files changed, 2 insertions, 2 deletions
diff --git a/mjit.c b/mjit.c
index 49bac227a0..faa31da2a4 100644
--- a/mjit.c
+++ b/mjit.c
@@ -422,7 +422,7 @@ exec_process(const char *path, char *const argv[])
: waitpid(pid, &stat, 0);
if (r == -1) {
if (errno == EINTR) continue;
- fprintf(stderr, "[%d] waitpid(%d): %s (SIGCHLD=%d,%u)\n",
+ fprintf(stderr, "[%d] waitpid(%"PRI_PIDT_PREFIX"d): %s (SIGCHLD=%d,%u)\n",
getpid(), pid, strerror(errno),
RUBY_SIGCHLD, SIGCHLD_LOSSY);
break;
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 20b47a581a..fd852c21b7 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -760,7 +760,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define ssize_t int
!endif
#define PRI_LL_PREFIX "I64"
-#define PRI_PIDT_PREFIX PRI_INT_PREFIX
+#define PRI_PIDT_PREFIX "I"
#define GETGROUPS_T int
#define RETSIGTYPE void
#define TYPEOF_TIMEVAL_TV_SEC long