emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110692: Fix compiler warnings in w32


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110692: Fix compiler warnings in w32proc.c.
Date: Sat, 27 Oct 2012 21:43:48 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110692
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2012-10-27 21:43:48 +0200
message:
  Fix compiler warnings in w32proc.c.
  
   src/w32proc.c (sys_spawnve): Avoid compiler warning about format mismatch.
   (timer_loop): Remove unused variable.
modified:
  src/ChangeLog
  src/w32proc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-10-27 19:32:30 +0000
+++ b/src/ChangeLog     2012-10-27 19:43:48 +0000
@@ -11,11 +11,13 @@
        for the timer.
        (timer_loop): Enter critical section when accessing ULONGLONG
        values of the itimer_data struct, as these accesses are no longer
-       atomic.  Call 'w32_get_timer_time' instead of 'clock'.
+       atomic.  Call 'w32_get_timer_time' instead of 'clock'.  Remove
+       unused variable.
        (init_timers): Initialize s_pfn_Get_Thread_Times.
        (start_timer_thread): Don't assign itimer->caller_thread here.
        (getitimer): Assign itimer->caller_thread here.
        (setitimer): Always call getitimer to get the value of ticks_now.
+       (sys_spawnve): Avoid compiler warning about format mismatch.
 
 2012-10-26  Eli Zaretskii  <address@hidden>
 

=== modified file 'src/w32proc.c'
--- a/src/w32proc.c     2012-10-27 19:32:30 +0000
+++ b/src/w32proc.c     2012-10-27 19:43:48 +0000
@@ -335,7 +335,6 @@
   int sig = (which == ITIMER_REAL) ? SIGALRM : SIGPROF;
   CRITICAL_SECTION *crit = (which == ITIMER_REAL) ? &crit_real : &crit_prof;
   const DWORD max_sleep = MAX_SINGLE_SLEEP * 1000 / CLOCKS_PER_SEC;
-  int new_count = 0;
   HANDLE hth = (which == ITIMER_REAL) ? NULL : itimer->caller_thread;
 
   while (1)
@@ -1656,7 +1655,7 @@
       numenv++;
     }
   /* extra env vars... */
-  sprintf (ppid_env_var_buffer, "EM_PARENT_PROCESS_ID=%d",
+  sprintf (ppid_env_var_buffer, "EM_PARENT_PROCESS_ID=%lu",
           GetCurrentProcessId ());
   arglen += strlen (ppid_env_var_buffer) + 1;
   numenv++;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]