diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-07-11 17:28:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-11 17:28:02 (GMT) |
commit | e269f9036474b9d5b3c88d865e7bb20ecad5c54c (patch) | |
tree | aa5313f198b044605d6b135cd4499cc2f91eacee /src/H5make_libsettings.c | |
parent | 0412d3f292b255da700d865fd1eb990e05c038bb (diff) | |
download | hdf5-e269f9036474b9d5b3c88d865e7bb20ecad5c54c.zip hdf5-e269f9036474b9d5b3c88d865e7bb20ecad5c54c.tar.gz hdf5-e269f9036474b9d5b3c88d865e7bb20ecad5c54c.tar.bz2 |
Misc clang warning fixes (#1869)
* Minor clang warning fixes in src and test
* Fixes clang warnings in high-level library
* clang format-nonliteral warning fixes
* Committing clang-format changes
* Fixed int -> float clang cast warnings in h5diff
* Quiets some warnings in flex/bison generated code
* Suppress overlong string warning for libinfo on clang
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5make_libsettings.c')
-rw-r--r-- | src/H5make_libsettings.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5make_libsettings.c b/src/H5make_libsettings.c index 6d9c3c9..10579e4 100644 --- a/src/H5make_libsettings.c +++ b/src/H5make_libsettings.c @@ -71,6 +71,7 @@ insert_libhdf5_settings(FILE *flibinfo) */ HDfprintf(flibinfo, "#include \"H5private.h\"\n"); HDfprintf(flibinfo, "H5_GCC_DIAG_OFF(\"larger-than=\")\n\n"); + HDfprintf(flibinfo, "H5_CLANG_DIAG_OFF(\"overlength-strings\")\n\n"); /* Print variable definition and the string. Do not use const or some * platforms (AIX?) will have issues. @@ -110,6 +111,7 @@ insert_libhdf5_settings(FILE *flibinfo) /* Re-enable warnings for large arrays */ HDfprintf(rawoutstream, "H5_GCC_DIAG_ON(\"larger-than=\")\n"); + HDfprintf(rawoutstream, "H5_CLANG_DIAG_OFF(\"overlength-strings\")\n"); #else /* Print variable definition and an empty string. Do not use const or some * platforms (AIX?) will have issues. |