mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-24 15:25:00 +08:00
65d8c93470
* Fixed various -Wmissing-variable-declarations by adding static keyword * In a few cases, renamed the variable suffix from _g to _s. * Fixed some -Wmissing-variable-declarations by using different declaration macros * Fixed various -Wconditional-uninitialized warnings by just initializing variable to zero * Fixed various -Wcomma warnings * Fixed clang -Wstrict-prototypes warnings * Fixed various -Wunused-variable warnings * Updated some casts to fix the only 3 -Wcast-qual warnings * Fixed the only -Wsometimes-uninitialized warning
14 lines
260 B
C
14 lines
260 B
C
#include "hdf5.h"
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
herr_t retval;
|
|
unsigned majnum, minnum, relnum;
|
|
|
|
if ((retval = H5get_libversion(&majnum, &minnum, &relnum)) >= 0) {
|
|
printf("Hello, HDF5 %d.%d.%d!\n", majnum, minnum, relnum);
|
|
}
|
|
return retval;
|
|
}
|