diff options
Diffstat (limited to 'devel/nspr/files/patch-warnings')
-rw-r--r-- | devel/nspr/files/patch-warnings | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/nspr/files/patch-warnings b/devel/nspr/files/patch-warnings index 3a89f86e1aed..571421fba5e3 100644 --- a/devel/nspr/files/patch-warnings +++ b/devel/nspr/files/patch-warnings @@ -1,3 +1,22 @@ +--- ../pr/src/pthreads/ptio.c 2009-05-09 23:07:02.000000000 -0400 ++++ ../pr/src/pthreads/ptio.c 2009-11-04 15:24:47.000000000 -0500 +@@ -3758,7 +3769,7 @@ + * We use these variables to figure out how much time has + * elapsed and how much of the timeout still remains. + */ +- PRIntervalTime start, elapsed, remaining; ++ PRIntervalTime start = 0, elapsed, remaining; + + if (pt_TestAbort()) return -1; + +@@ -4927,6 +4938,7 @@ + + if (timeout == PR_INTERVAL_NO_TIMEOUT) { + tvp = NULL; ++ start = 0; /* Not needed, but shuts down a warning */ + } else { + tv.tv_sec = (PRInt32)PR_IntervalToSeconds(timeout); + tv.tv_usec = (PRInt32)PR_IntervalToMicroseconds( --- ../pr/src/pthreads/ptsynch.c Mon Nov 22 16:24:53 2004 +++ ../pr/src/pthreads/ptsynch.c Mon Jul 25 00:03:49 2005 @@ -63,5 +63,5 @@ |