summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.l
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-06 19:11:16 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-06 19:11:16 (GMT)
commitee274b97f8e577b874165e93f95e7dbf8e73e675 (patch)
tree49a98360814bf082ddbd062dbc317e29cd498c6e /hl/src/H5LTanalyze.l
parent482ade4657c34188532a5b19664f37dcd3319edd (diff)
parent91ca481ff152e7a6b0326fcdb59e506141d2d32a (diff)
downloadhdf5-ee274b97f8e577b874165e93f95e7dbf8e73e675.zip
hdf5-ee274b97f8e577b874165e93f95e7dbf8e73e675.tar.gz
hdf5-ee274b97f8e577b874165e93f95e7dbf8e73e675.tar.bz2
Merge pull request #2738 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:develop_minor to develop
* commit '91ca481ff152e7a6b0326fcdb59e506141d2d32a': Reverts H5FDsplitter.c changes so they don't conflict with Quincey's big cleanup patch Fixes -Wnull-dereference warnings around the cache logging calls Fixes -Wnull-dereference warning in hl/src/H5DS.c Adds -Wnull-dereference to the warnings we ignore in flex/bison generated code (that we have no control over). Fixes warnings in the splitter VFD and tests
Diffstat (limited to 'hl/src/H5LTanalyze.l')
-rw-r--r--hl/src/H5LTanalyze.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/hl/src/H5LTanalyze.l b/hl/src/H5LTanalyze.l
index 5015053..cdd5b0d 100644
--- a/hl/src/H5LTanalyze.l
+++ b/hl/src/H5LTanalyze.l
@@ -28,6 +28,13 @@
#pragma GCC diagnostic ignored "-Wsuggest-attribute=const"
#endif
+/* Turn off null dereference warnings in gcc.
+ * We have no control over this generated code.
+ */
+#if defined __GNUC__ && 600 <= __GNUC__ * 100
+#pragma GCC diagnostic ignored "-Wnull-dereference"
+#endif
+
int my_yyinput(char *, int);
#undef YY_INPUT
#define YY_INPUT(b, r, ms) (r=my_yyinput(b, ms))