瀏覽代碼

ignore unreachable-code-break

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 1 年之前
父節點
當前提交
0a91475303

+ 2 - 1
build/config/compiler/BUILD.gn

@@ -1521,7 +1521,8 @@ config("default_warnings") {
       "-Wno-unused-parameter",  # Unused function parameters.
       "-Wno-unused-private-field",
       "-Wno-unused-const-variable",
-      "-Wno-unreachable-code",
+      # "-Wno-unreachable-code",
+      "-Wno-unreachable-code-break",
     ]
   }
 

+ 1 - 0
chrome/browser/sessions/session_service.cc

@@ -1,6 +1,7 @@
 // Copyright 2012 The Chromium Authors
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+#pragma clang diagnostic ignored "-Wunreachable-code"
 
 #include "chrome/browser/sessions/session_service.h"
 

+ 1 - 0
chrome/browser/ui/views/tab_icon_view.cc

@@ -1,6 +1,7 @@
 // Copyright 2012 The Chromium Authors
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+#pragma clang diagnostic ignored "-Wunreachable-code"
 
 #include "chrome/browser/ui/views/tab_icon_view.h"
 #include "ui/gfx/scoped_canvas.h"