mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +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
261 B
C
14 lines
261 B
C
#include "hdf5.h"
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
hid_t file;
|
|
if ((file = H5Fcreate("foo.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0)
|
|
return -1;
|
|
/* Do something good with this file. */
|
|
if (H5Fclose(file) < 0)
|
|
return -2;
|
|
return 0;
|
|
}
|