summaryrefslogtreecommitdiffstats
path: root/src/H5Tnative.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Tnative.c')
-rw-r--r--src/H5Tnative.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/H5Tnative.c b/src/H5Tnative.c
index d213c45..6daa544 100644
--- a/src/H5Tnative.c
+++ b/src/H5Tnative.c
@@ -516,6 +516,11 @@ done:
} /* end H5T__get_native_type() */
/* Disable warning for intentional identical branches here -QAK */
+/*
+ * This pragma only needs to surround the "duplicated branches" in
+ * the code below, but early (4.4.7, at least) gcc only allows
+ * diagnostic pragmas to be toggled outside of functions.
+ */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wduplicated-branches"
@@ -661,6 +666,11 @@ done:
#pragma GCC diagnostic pop
/* Disable warning for intentional identical branches here -QAK */
+/*
+ * This pragma only needs to surround the "duplicated branches" in
+ * the code below, but early (4.4.7, at least) gcc only allows
+ * diagnostic pragmas to be toggled outside of functions.
+ */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wduplicated-branches"
@@ -790,6 +800,11 @@ done:
#pragma GCC diagnostic pop
/* Disable warning for intentional identical branches here -QAK */
+/*
+ * This pragma only needs to surround the "duplicated branches" in
+ * the code below, but early (4.4.7, at least) gcc only allows
+ * diagnostic pragmas to be toggled outside of functions.
+ */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wduplicated-branches"