diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-04-07 22:59:51 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-04-07 22:59:51 (GMT) |
commit | 14ae8bf4e2ab39110899e214d600f899ebcf0cb9 (patch) | |
tree | b0c2daee3127385952b96a0fcc17cc8f57a7ec02 /hl/src/H5LTanalyze.l | |
parent | f502d9f7fbab50f167bcd8bbf02a4f86c7bd8c13 (diff) | |
download | hdf5-14ae8bf4e2ab39110899e214d600f899ebcf0cb9.zip hdf5-14ae8bf4e2ab39110899e214d600f899ebcf0cb9.tar.gz hdf5-14ae8bf4e2ab39110899e214d600f899ebcf0cb9.tar.bz2 |
TRILAB-192 update LTparse files
Diffstat (limited to 'hl/src/H5LTanalyze.l')
-rw-r--r-- | hl/src/H5LTanalyze.l | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l index b9b492e..f16455b 100644 --- a/hl/src/H5LTanalyze.l +++ b/hl/src/H5LTanalyze.l @@ -23,9 +23,10 @@ #include <hdf5.h> #include "H5LTparse.h" -/* Turn off suggest const attribute warning in gcc */ -#if __GNUC__ >= 4 && __GNUC_MINOR__ >=2 +/* Turn off suggest const & malloc attribute warnings in gcc */ +#if defined __GNUC__ && 402 <= __GNUC__ * 100 + __GNUC_MINOR__ #pragma GCC diagnostic ignored "-Wsuggest-attribute=const" +#pragma GCC diagnostic ignored "-Wsuggest-attribute=malloc" #endif int my_yyinput(char *, int); |