0059-ignore-unreachable-code-break.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From 7a09a0051c8c4337dd5519022e176bee3f43fff5 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Wed, 7 Sep 2022 21:27:21 -0400
  4. Subject: [PATCH 59/68] ignore unreachable-code-break
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. build/config/compiler/BUILD.gn | 3 ++-
  8. chrome/browser/sessions/session_service.cc | 1 +
  9. chrome/browser/ui/views/tab_icon_view.cc | 1 +
  10. 3 files changed, 4 insertions(+), 1 deletion(-)
  11. diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
  12. index c38c4dd1aa64..a41a706ca794 100644
  13. --- a/build/config/compiler/BUILD.gn
  14. +++ b/build/config/compiler/BUILD.gn
  15. @@ -1512,7 +1512,8 @@ config("default_warnings") {
  16. "-Wno-unused-parameter", # Unused function parameters.
  17. "-Wno-unused-private-field",
  18. "-Wno-unused-const-variable",
  19. - "-Wno-unreachable-code",
  20. + # "-Wno-unreachable-code",
  21. + "-Wno-unreachable-code-break",
  22. ]
  23. }
  24. diff --git a/chrome/browser/sessions/session_service.cc b/chrome/browser/sessions/session_service.cc
  25. index f59999fb3058..5ec8e829d875 100644
  26. --- a/chrome/browser/sessions/session_service.cc
  27. +++ b/chrome/browser/sessions/session_service.cc
  28. @@ -1,6 +1,7 @@
  29. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  30. // Use of this source code is governed by a BSD-style license that can be
  31. // found in the LICENSE file.
  32. +#pragma clang diagnostic ignored "-Wunreachable-code"
  33. #include "chrome/browser/sessions/session_service.h"
  34. diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
  35. index 47caf3fcf669..11e8ed1e1fb6 100644
  36. --- a/chrome/browser/ui/views/tab_icon_view.cc
  37. +++ b/chrome/browser/ui/views/tab_icon_view.cc
  38. @@ -1,6 +1,7 @@
  39. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  40. // Use of this source code is governed by a BSD-style license that can be
  41. // found in the LICENSE file.
  42. +#pragma clang diagnostic ignored "-Wunreachable-code"
  43. #include "chrome/browser/ui/views/tab_icon_view.h"
  44. #include "ui/gfx/scoped_canvas.h"
  45. --
  46. 2.30.2