Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 3095)
+++ trunk/psLib/src/math/psStats.c	(revision 3115)
@@ -9,6 +9,6 @@
  *  @author GLG, MHPCC
  *
- *  @version $Revision: 1.111 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-01-26 20:24:17 $
+ *  @version $Revision: 1.112 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-02-03 00:54:10 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -145,7 +145,7 @@
 this routine sets stats->sampleMean to NAN.
  *****************************************************************************/
-psS32 p_psVectorSampleMean(const psVector* restrict myVector,
-                           const psVector* restrict errors,
-                           const psVector* restrict maskVector,
+psS32 p_psVectorSampleMean(const psVector* myVector,
+                           const psVector* errors,
+                           const psVector* maskVector,
                            psU32 maskVal,
                            psStats* stats)
@@ -283,6 +283,6 @@
 this routine sets stats->max to NAN.
  *****************************************************************************/
-psS32 p_psVectorMax(const psVector* restrict myVector,
-                    const psVector* restrict maskVector,
+psS32 p_psVectorMax(const psVector* myVector,
+                    const psVector* maskVector,
                     psU32 maskVal,
                     psStats* stats)
@@ -348,6 +348,6 @@
 this routine sets stats->min to NAN.
  *****************************************************************************/
-psS32 p_psVectorMin(const psVector* restrict myVector,
-                    const psVector* restrict maskVector,
+psS32 p_psVectorMin(const psVector* myVector,
+                    const psVector* maskVector,
                     psU32 maskVal,
                     psStats* stats)
@@ -414,6 +414,6 @@
 "false".
  *****************************************************************************/
-bool p_psVectorCheckNonEmpty(const psVector* restrict myVector,
-                             const psVector* restrict maskVector,
+bool p_psVectorCheckNonEmpty(const psVector* myVector,
+                             const psVector* maskVector,
                              psU32 maskVal,
                              psStats* stats)
@@ -462,6 +462,6 @@
 range, if specified.
  *****************************************************************************/
-psS32 p_psVectorNValues(const psVector* restrict myVector,
-                        const psVector* restrict maskVector,
+psS32 p_psVectorNValues(const psVector* myVector,
+                        const psVector* maskVector,
                         psU32 maskVal,
                         psStats* stats)
@@ -511,6 +511,6 @@
 XXX: Use static vectors for sort arrays.
  *****************************************************************************/
-bool p_psVectorSampleMedian(const psVector* restrict myVector,
-                            const psVector* restrict maskVector,
+bool p_psVectorSampleMedian(const psVector* myVector,
+                            const psVector* maskVector,
                             psU32 maskVal,
                             psStats* stats)
@@ -701,6 +701,6 @@
     NULL
  *****************************************************************************/
-bool p_psVectorSampleQuartiles(const psVector* restrict myVector,
-                               const psVector* restrict maskVector,
+bool p_psVectorSampleQuartiles(const psVector* myVector,
+                               const psVector* maskVector,
                                psU32 maskVal,
                                psStats* stats)
@@ -787,7 +787,7 @@
  
  *****************************************************************************/
-void p_psVectorSampleStdevOLD(const psVector* restrict myVector,
-                              const psVector* restrict errors,
-                              const psVector* restrict maskVector,
+void p_psVectorSampleStdevOLD(const psVector* myVector,
+                              const psVector* errors,
+                              const psVector* maskVector,
                               psU32 maskVal,
                               psStats* stats)
@@ -881,7 +881,7 @@
  
  *****************************************************************************/
-void p_psVectorSampleStdev(const psVector* restrict myVector,
-                           const psVector* restrict errors,
-                           const psVector* restrict maskVector,
+void p_psVectorSampleStdev(const psVector* myVector,
+                           const psVector* errors,
+                           const psVector* maskVector,
                            psU32 maskVal,
                            psStats* stats)
@@ -896,5 +896,5 @@
     //    psF32 sum1;
     //    psF32 sum2;
-    psF32 errorDivisor;
+    psF32 errorDivisor = 0.0f;
 
     // This procedure requires the mean.  If it has not been already
@@ -1003,7 +1003,7 @@
     -2: warning
  *****************************************************************************/
-psS32 p_psVectorClippedStats(const psVector* restrict myVector,
-                             const psVector* restrict errors,
-                             const psVector* restrict maskVector,
+psS32 p_psVectorClippedStats(const psVector* myVector,
+                             const psVector* errors,
+                             const psVector* maskVector,
                              psU32 maskVal,
                              psStats* stats)
@@ -1331,5 +1331,5 @@
     psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD);
 
-    psF32 tmpFloat;
+    psF32 tmpFloat = 0.0f;
 
     if ((binNum > 0) && (binNum < (yVec->n - 2))) {
@@ -1425,7 +1425,7 @@
 XXX: Check for errors in psLib routines that we call.
 *****************************************************************************/
-psS32 p_psVectorRobustStats(const psVector* restrict myVector,
-                            const psVector* restrict errors,
-                            const psVector* restrict maskVector,
+psS32 p_psVectorRobustStats(const psVector* myVector,
+                            const psVector* errors,
+                            const psVector* maskVector,
                             psU32 maskVal,
                             psStats* stats)
@@ -1820,5 +1820,5 @@
     The histogram structure
  *****************************************************************************/
-psHistogram* psHistogramAllocGeneric(const psVector* restrict bounds)
+psHistogram* psHistogramAllocGeneric(const psVector* bounds)
 {
     PS_VECTOR_CHECK_NULL(bounds, NULL);
@@ -1890,6 +1890,6 @@
     psF32 boxcarRight = boxcarCenter + (boxcarWidth / 2.0);
     psS32 bin;
-    psS32 boxcarLeftBinNum;
-    psS32 boxcarRightBinNum;
+    psS32 boxcarLeftBinNum = 0;
+    psS32 boxcarRightBinNum = 0;
 
     // Determine the left endpoint of the boxcar for the PDF.
@@ -1961,7 +1961,7 @@
  *****************************************************************************/
 psHistogram* psVectorHistogram(psHistogram* out,
-                               const psVector* restrict in,
-                               const psVector* restrict errors,
-                               const psVector* restrict mask,
+                               const psVector* in,
+                               const psVector* errors,
+                               const psVector* mask,
                                psU32 maskVal)
 {
