Adds format attribute to additional functions (#1868)
* Adds format attribute to (s|p)io_perf code * Added gcc format attribute to additional test code * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -220,7 +220,7 @@ H5TEST_DLL void h5_reset(void);
|
||||
H5TEST_DLL void h5_restore_err(void);
|
||||
H5TEST_DLL void h5_show_hostname(void);
|
||||
H5TEST_DLL h5_stat_size_t h5_get_file_size(const char *filename, hid_t fapl);
|
||||
H5TEST_DLL int print_func(const char *format, ...);
|
||||
H5TEST_DLL int print_func(const char *format, ...) H5_ATTR_FORMAT(printf, 1, 2);
|
||||
H5TEST_DLL int h5_make_local_copy(const char *origfilename, const char *local_copy_name);
|
||||
H5TEST_DLL herr_t h5_verify_cached_stabs(const char *base_name[], hid_t fapl);
|
||||
H5TEST_DLL H5FD_class_t *h5_get_dummy_vfd_class(void);
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
{ \
|
||||
if (VERBOSE_HI) { \
|
||||
print_func(" Call to routine: %15s at line %4d in %s returned %p\n", (where), (int)__LINE__, \
|
||||
__FILE__, (ret)); \
|
||||
__FILE__, ((const void *)ret)); \
|
||||
} \
|
||||
if (!(ret)) { \
|
||||
TestErrPrintf("*** UNEXPECTED RETURN from %s is NULL line %4d in %s\n", (where), (int)__LINE__, \
|
||||
@@ -70,7 +70,7 @@
|
||||
{ \
|
||||
if (VERBOSE_HI) { \
|
||||
print_func(" Call to routine: %15s at line %4d in %s returned %p\n", (where), (int)__LINE__, \
|
||||
__FILE__, (ret)); \
|
||||
__FILE__, ((const void *)ret)); \
|
||||
} \
|
||||
if (ret) { \
|
||||
TestErrPrintf("*** UNEXPECTED RETURN from %s is not NULL line %4d in %s\n", (where), \
|
||||
|
||||
Reference in New Issue
Block a user