hdf5/doxygen/examples/hello_hdf5.c
Sean McBride 65d8c93470
Many fixes to various compiler warnings (#3124)
* 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
2023-06-18 22:13:38 -07:00

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;
}