Fix compiler warnings
authorRoland Schulz <roland@utk.edu>
Sat, 6 Oct 2012 22:38:06 +0000 (18:38 -0400)
committerRoland Schulz <roland@utk.edu>
Sat, 6 Oct 2012 22:40:07 +0000 (18:40 -0400)
Not a bug: Initialization is unnecessary because either switch is
always either one. But quiets compiler.

Change-Id: I691bb52cd7173a2003a54ad3d5a809174b29cedc

src/gromacs/mdlib/fft5d.cpp

index 4ceada5ac3498547090fcea9a0b1254f67f1e216..26403c74b4b8fef06055753b0d3d72afdf5e1a5c 100644 (file)
@@ -741,7 +741,7 @@ static void compute_offsets(fft5d_plan plan, int xs[], int xl[], int xc[], int N
 /*    int direction = plan->direction;
     int fftorder = plan->fftorder;*/
     
-    int o;
+    int o=0;
     int pos[3],i;
     int *pM=plan->pM, *pK=plan->pK, *oM=plan->oM, *oK=plan->oK,
         *C=plan->C, *rC=plan->rC;