mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r10175] Purpose:
Code cleanup Description: Clean up a few warnings flagged by the Intel C compiler. Platforms tested: FreeBSD 4.11 (sleipnir) w/Intel C Too minor to require h5committest
This commit is contained in:
parent
6a14114253
commit
966d089771
10
src/H5.c
10
src/H5.c
@ -607,7 +607,7 @@ H5check_version(unsigned majnum, unsigned minnum, unsigned relnum)
|
||||
/* Mention the versions we are referring to */
|
||||
HDfprintf (stderr, "Headers are %u.%u.%u, library is %u.%u.%u\n",
|
||||
majnum, minnum, relnum,
|
||||
H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE);
|
||||
(unsigned)H5_VERS_MAJOR, (unsigned)H5_VERS_MINOR, (unsigned)H5_VERS_RELEASE);
|
||||
|
||||
/* Bail out now. */
|
||||
HDfputs ("Bye...\n", stderr);
|
||||
@ -627,7 +627,7 @@ H5check_version(unsigned majnum, unsigned minnum, unsigned relnum)
|
||||
/* Mention the versions we are referring to */
|
||||
HDfprintf (stderr, "Headers are %u.%u.%u, library is %u.%u.%u\n",
|
||||
majnum, minnum, relnum,
|
||||
H5_VERS_MAJOR, H5_VERS_MINOR, H5_VERS_RELEASE);
|
||||
(unsigned)H5_VERS_MAJOR, (unsigned)H5_VERS_MINOR, (unsigned)H5_VERS_RELEASE);
|
||||
break;
|
||||
} /* end switch */
|
||||
|
||||
@ -1286,16 +1286,16 @@ H5_timer_begin (H5_timer_t *timer)
|
||||
#ifdef H5_HAVE_GETRUSAGE
|
||||
HDgetrusage (RUSAGE_SELF, &rusage);
|
||||
timer->utime = (double)rusage.ru_utime.tv_sec +
|
||||
(double)rusage.ru_utime.tv_usec/1e6;
|
||||
((double)rusage.ru_utime.tv_usec/1e6);
|
||||
timer->stime = (double)rusage.ru_stime.tv_sec +
|
||||
(double)rusage.ru_stime.tv_usec/1e6;
|
||||
((double)rusage.ru_stime.tv_usec/1e6);
|
||||
#else
|
||||
timer->utime = 0.0;
|
||||
timer->stime = 0.0;
|
||||
#endif
|
||||
#ifdef H5_HAVE_GETTIMEOFDAY
|
||||
HDgettimeofday (&etime, NULL);
|
||||
timer->etime = (double)etime.tv_sec + (double)etime.tv_usec/1e6;
|
||||
timer->etime = (double)etime.tv_sec + ((double)etime.tv_usec/1e6);
|
||||
#else
|
||||
timer->etime = 0.0;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user