summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-08-24 14:32:18 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2019-09-04 11:53:36 +0200
commit85bec28aafc05c9b1fe3428832ee18af82747123 (patch)
tree960d0931c90dd7994b8d6b7ecd237eef0bd12963
parent9da08816e1072fc1391377a38d6afd9e73d756e0 (diff)
downloadqtxmlpatterns-85bec28aafc05c9b1fe3428832ee18af82747123.tar.gz
Change a fall-through comment to Q_FALLTHROUGH()
Calms gcc 7, which makes unannounced fall-through part of our standard warnings (which are handled as error in developer builds). Change-Id: Idc8cbb91d2fc5530a979b0ff06adde13f7c1b675 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/xmlpatterns/parser/qquerytransformparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/parser/qquerytransformparser.cpp b/src/xmlpatterns/parser/qquerytransformparser.cpp
index ea28c69..d7d642c 100644
--- a/src/xmlpatterns/parser/qquerytransformparser.cpp
+++ b/src/xmlpatterns/parser/qquerytransformparser.cpp
@@ -3070,7 +3070,7 @@ yytnamerr (char *yyres, const char *yystr)
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
- /* Fall through. */
+ Q_FALLTHROUGH();
default:
if (yyres)
yyres[yyn] = *yyp;