diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-10 14:30:51 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-03-10 14:30:51 (GMT) |
commit | 966d08977122ea825feffc947c385f3735dd52f5 (patch) | |
tree | a1f88db91102cceef75932eda9960c2bf49ae19d /src | |
parent | 6a14114253ddc1b0cb07533e4b466c677272a6ab (diff) | |
download | hdf5-966d08977122ea825feffc947c385f3735dd52f5.zip hdf5-966d08977122ea825feffc947c385f3735dd52f5.tar.gz hdf5-966d08977122ea825feffc947c385f3735dd52f5.tar.bz2 |
[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
Diffstat (limited to 'src')
-rw-r--r-- | src/H5.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |