[前][次][番号順一覧][スレッド一覧]

ruby-changes:51609

From: usa <ko1@a...>
Date: Mon, 2 Jul 2018 10:50:26 +0900 (JST)
Subject: [ruby-changes:51609] usa:r63820 (trunk): get rid of a compiler warning of VC

usa	2018-07-02 10:50:23 +0900 (Mon, 02 Jul 2018)

  New Revision: 63820

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63820

  Log:
    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".

  Modified files:
    trunk/mjit.c
    trunk/win32/Makefile.sub
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 63819)
+++ win32/Makefile.sub	(revision 63820)
@@ -760,7 +760,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L760
 #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
Index: mjit.c
===================================================================
--- mjit.c	(revision 63819)
+++ mjit.c	(revision 63820)
@@ -422,7 +422,7 @@ exec_process(const char *path, char *con https://github.com/ruby/ruby/blob/trunk/mjit.c#L422
                      : 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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]