summaryrefslogtreecommitdiffstats
path: root/hl/src/H5LTanalyze.l
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-08-06 05:51:34 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-06 05:51:34 (GMT)
commite327843f7af9857bdd4b560cd47ca3afe52bb74c (patch)
tree50ecdab5cc8f869267bc3dba3f19dc6e2ffe1b75 /hl/src/H5LTanalyze.l
parent8e7f3e38a7a3ada0500d830df6b76b1caa31dc3d (diff)
downloadhdf5-e327843f7af9857bdd4b560cd47ca3afe52bb74c.zip
hdf5-e327843f7af9857bdd4b560cd47ca3afe52bb74c.tar.gz
hdf5-e327843f7af9857bdd4b560cd47ca3afe52bb74c.tar.bz2
Adds -Wnull-dereference to the warnings we ignore in flex/bison
generated code (that we have no control over).
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))