Commits

BarryFSmith committed d1d3a73

mark function declaration and implementation which takes no arguments with void
to prevent warnings from some compilers

Comments (0)

Files changed (4)

src/benchmarks/streams/BasicVersion.c

 
 int main(int argc,char **args)
 {
-  int           checktick();
+  int           checktick(void);
   register int j, k;
   double       scalar, t, times[4][NTIMES],irate[4];
 
 
 # define        M        20
 
-int checktick()
+int checktick(void)
 {
   int    i, minDelta, Delta;
   double t1, t2, timesfound[M];

src/benchmarks/streams/MPIVersion.c

 
 int main(int argc,char **args)
 {
-  int          quantum, checktick();
+  int          quantum, checktick(void);
   register int j, k;
   double       scalar, t, times[4][NTIMES],irate[4],rate[4];
   int          rank,size,resultlen;
 
 # define        M        20
 
-int checktick()
+int checktick(void)
 {
   int    i, minDelta, Delta;
   double t1, t2, timesfound[M];

src/benchmarks/streams/PthreadVersion.c

 
 int main(int argc,char *argv[])
 {
-  int    quantum, checktick();
+  int    quantum, checktick(void);
   int    BytesPerWord;
   int    j, k;
   double scalar=3.0, t, times[4][NTIMES];
 
 # define        M        20
 
-int checktick()
+int checktick(void)
 {
   int    i, minDelta, Delta;
   double t1, t2, timesfound[M];

src/benchmarks/streams/SSEVersion.c

 }
 
 #define M 20
-static int checktick()
+static int checktick(void)
 {
   int    i, minDelta, Delta;
   double t1, t2, timesfound[M];