-
Notifications
You must be signed in to change notification settings - Fork 4
/
0059-ignore-unreachable-code-break.patch
53 lines (46 loc) · 2.06 KB
/
0059-ignore-unreachable-code-break.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From 7a09a0051c8c4337dd5519022e176bee3f43fff5 Mon Sep 17 00:00:00 2001
From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Date: Wed, 7 Sep 2022 21:27:21 -0400
Subject: [PATCH 59/68] ignore unreachable-code-break
Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
---
build/config/compiler/BUILD.gn | 3 ++-
chrome/browser/sessions/session_service.cc | 1 +
chrome/browser/ui/views/tab_icon_view.cc | 1 +
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index c38c4dd1aa64..a41a706ca794 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1512,7 +1512,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",
]
}
diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc
index f59999fb3058..5ec8e829d875 100644
--- a/chrome/browser/sessions/session_service.cc
+++ b/chrome/browser/sessions/session_service.cc
@@ -1,6 +1,7 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// 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"
diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
index 47caf3fcf669..11e8ed1e1fb6 100644
--- a/chrome/browser/ui/views/tab_icon_view.cc
+++ b/chrome/browser/ui/views/tab_icon_view.cc
@@ -1,6 +1,7 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// 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"
--
2.30.2