From 30e31900cf0e58d9d7e1d51ccb63e958f17328e1 Mon Sep 17 00:00:00 2001 From: Chris Peterson Date: Fri, 1 Jan 2016 17:02:54 -0700 Subject: [PATCH] Bug 1236325 - Annotate intentional switch fallthrough to suppress -Wimplicit-fallthrough warning in satchel. r=mak toolkit/components/satchel/nsFormFillController.cpp:974:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels --- toolkit/components/satchel/nsFormFillController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/satchel/nsFormFillController.cpp b/toolkit/components/satchel/nsFormFillController.cpp index 25637c665b66..99a589bfb577 100644 --- a/toolkit/components/satchel/nsFormFillController.cpp +++ b/toolkit/components/satchel/nsFormFillController.cpp @@ -961,7 +961,7 @@ nsFormFillController::KeyPress(nsIDOMEvent* aEvent) if (isCtrl || isAlt || isMeta) break; } - /* fall through */ + MOZ_FALLTHROUGH; case nsIDOMKeyEvent::DOM_VK_UP: case nsIDOMKeyEvent::DOM_VK_DOWN: case nsIDOMKeyEvent::DOM_VK_LEFT: