[XS] Change in fuchsia/fuchsia[main]: [storage] Remove unused constant

0 views
Skip to first unread message

'Paul Kirth (Gerrit)' via owners-override

unread,
Oct 17, 2023, 5:56:10 PM10/17/23
to Owners Override, Chris Drouillard, James Sullivan

Attention is currently required from: Chris Drouillard, James Sullivan, Owners Override.

Paul Kirth would like Owners Override, Chris Drouillard and James Sullivan to review this change.

View Change

[storage] Remove unused constant

In the upcoming clang roll, the -Wunused-const-variable diagnostic is
much more stringent in C++20 mode, and will flag unused constants.

Change-Id: I6285d767044fede29366cd0f626c023af39299a9
---
M src/storage/lib/fs_management/cpp/options_test.cc
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/storage/lib/fs_management/cpp/options_test.cc b/src/storage/lib/fs_management/cpp/options_test.cc
index ebb0a88..e3ddf16 100644
--- a/src/storage/lib/fs_management/cpp/options_test.cc
+++ b/src/storage/lib/fs_management/cpp/options_test.cc
@@ -10,8 +10,6 @@

namespace {

-const std::string kTestBinary = "/test/binary";
-
void AssertStartOptionsEqual(const fuchsia_fs_startup::wire::StartOptions& a,
const fuchsia_fs_startup::wire::StartOptions& b) {
ASSERT_EQ(a.read_only, b.read_only);

To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
Gerrit-Change-Number: 933435
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Kirth <paul...@google.com>
Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
Gerrit-Reviewer: Paul Kirth <paul...@google.com>
Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
Gerrit-Attention: Chris Drouillard <cdr...@google.com>
Gerrit-Attention: James Sullivan <jfsu...@google.com>

--
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/81d8788957c58ccc7df58f895e4d4162b45a1a4d-HTML%40fuchsia-review.googlesource.com.

'Paul Kirth (Gerrit)' via owners-override

unread,
Oct 17, 2023, 5:56:12 PM10/17/23
to James Sullivan, Chris Drouillard, Owners Override

Attention is currently required from: Chris Drouillard, James Sullivan, Owners Override.

Patch set 1:Fuchsia-Auto-Submit +1

View Change

    To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-MessageType: comment
    Gerrit-Project: fuchsia
    Gerrit-Branch: main
    Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
    Gerrit-Change-Number: 933435
    Gerrit-PatchSet: 1
    Gerrit-Owner: Paul Kirth <paul...@google.com>
    Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
    Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
    Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
    Gerrit-Reviewer: Paul Kirth <paul...@google.com>
    Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
    Gerrit-Attention: Chris Drouillard <cdr...@google.com>
    Gerrit-Attention: James Sullivan <jfsu...@google.com>
    Gerrit-Comment-Date: Tue, 17 Oct 2023 21:56:07 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes

    --
    You received this message because you are subscribed to the Google Groups "owners-override" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
    To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/81d8788957c58ccc7df58f895e4d4162b45a1a4d-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.

    'Chris Drouillard (Gerrit)' via owners-override

    unread,
    Oct 17, 2023, 5:58:02 PM10/17/23
    to Paul Kirth, CQ Bot, James Sullivan, Owners Override

    Attention is currently required from: James Sullivan, Owners Override, Paul Kirth.

    Patch set 2:Code-Review +2

    View Change

      To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: fuchsia
      Gerrit-Branch: main
      Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
      Gerrit-Change-Number: 933435
      Gerrit-PatchSet: 2
      Gerrit-Owner: Paul Kirth <paul...@google.com>
      Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
      Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
      Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Reviewer: Paul Kirth <paul...@google.com>
      Gerrit-Attention: Paul Kirth <paul...@google.com>
      Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Attention: James Sullivan <jfsu...@google.com>
      Gerrit-Comment-Date: Tue, 17 Oct 2023 21:57:58 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes

      --
      You received this message because you are subscribed to the Google Groups "owners-override" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
      To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/03b26ca8543b8afa512f4c10fe465c6bb6911271-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.

      'Adam Barth (Gerrit)' via owners-override

      unread,
      Oct 17, 2023, 6:06:41 PM10/17/23
      to Paul Kirth, Chris Drouillard, CQ Bot, James Sullivan, Owners Override

      Attention is currently required from: James Sullivan, Owners Override, Paul Kirth.

      View Change

      1 comment:

      • Patchset:

        • Patch Set #2:

          I'm curious why this CL was sent to owners-override for review. This change looks like a narrowly scoped changed that should be reviewed using the normal OWNERS.

      To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: fuchsia
      Gerrit-Branch: main
      Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
      Gerrit-Change-Number: 933435
      Gerrit-PatchSet: 2
      Gerrit-Owner: Paul Kirth <paul...@google.com>
      Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
      Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
      Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Reviewer: Paul Kirth <paul...@google.com>
      Gerrit-CC: Adam Barth <aba...@google.com>
      Gerrit-Attention: Paul Kirth <paul...@google.com>
      Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Attention: James Sullivan <jfsu...@google.com>
      Gerrit-Comment-Date: Tue, 17 Oct 2023 22:06:35 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No

      --
      You received this message because you are subscribed to the Google Groups "owners-override" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
      To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/58681afabae639e1b6bf9b2f390b5f933f6128e4-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.

      'Paul Kirth (Gerrit)' via owners-override

      unread,
      Oct 17, 2023, 6:13:44 PM10/17/23
      to Adam Barth, Chris Drouillard, CQ Bot, James Sullivan, Owners Override

      Attention is currently required from: Adam Barth, James Sullivan, Owners Override.

      Patch set 2:Fuchsia-Auto-Submit +1

      View Change

      1 comment:

      • Patchset:

        • Patch Set #2:

          I'm curious why this CL was sent to owners-override for review. […]

          oh, I guess I misread the changes in procedure linked in the announcement. I had read the directions for changes that were cutting across the codebase, but but looking I see it's mostly intended for large scale changes. There have been quite a few of these cropping up, but looking at the document and announcement again, I'd say I made an error adding it. I will be a bit more careful in the future.

      To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: fuchsia
      Gerrit-Branch: main
      Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
      Gerrit-Change-Number: 933435
      Gerrit-PatchSet: 2
      Gerrit-Owner: Paul Kirth <paul...@google.com>
      Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
      Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
      Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Reviewer: Paul Kirth <paul...@google.com>
      Gerrit-CC: Adam Barth <aba...@google.com>
      Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Attention: Adam Barth <aba...@google.com>
      Gerrit-Attention: James Sullivan <jfsu...@google.com>
      Gerrit-Comment-Date: Tue, 17 Oct 2023 22:13:39 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Adam Barth <aba...@google.com>

      --
      You received this message because you are subscribed to the Google Groups "owners-override" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
      To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/c5385523f850c5b4a47f331897c305c731abfffa-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.

      'Adam Barth (Gerrit)' via owners-override

      unread,
      Oct 17, 2023, 6:14:29 PM10/17/23
      to Paul Kirth, Chris Drouillard, CQ Bot, James Sullivan, Owners Override

      Attention is currently required from: James Sullivan, Owners Override, Paul Kirth.

      View Change

      1 comment:

      • Patchset:

        • Patch Set #2:

          oh, I guess I misread the changes in procedure linked in the announcement. […]

          Ok, thanks!

      To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: comment
      Gerrit-Project: fuchsia
      Gerrit-Branch: main
      Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
      Gerrit-Change-Number: 933435
      Gerrit-PatchSet: 2
      Gerrit-Owner: Paul Kirth <paul...@google.com>
      Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
      Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
      Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Reviewer: Paul Kirth <paul...@google.com>
      Gerrit-CC: Adam Barth <aba...@google.com>
      Gerrit-Attention: Paul Kirth <paul...@google.com>
      Gerrit-Attention: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Attention: James Sullivan <jfsu...@google.com>
      Gerrit-Comment-Date: Tue, 17 Oct 2023 22:14:24 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Paul Kirth <paul...@google.com>
      Comment-In-Reply-To: Adam Barth <aba...@google.com>

      --
      You received this message because you are subscribed to the Google Groups "owners-override" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
      To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/c8f592034d8623a53bb1dec20e824a2dc61b5812-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.

      'CQ Bot (Gerrit)' via owners-override

      unread,
      Oct 19, 2023, 2:12:37 PM10/19/23
      to Paul Kirth, Auto-Submit, Adam Barth, Chris Drouillard, James Sullivan, Owners Override

      CQ Bot submitted this change.

      View Change

      Approvals: Auto-Submit: Commit Chris Drouillard: Looks good to me, approved Paul Kirth: Send CL to CQ automatically after approval
      [storage] Remove unused constant

      In the upcoming clang roll, the -Wunused-const-variable diagnostic is
      much more stringent in C++20 mode, and will flag unused constants.

      Fixed:135339
      Change-Id: I6285d767044fede29366cd0f626c023af39299a9
      Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/933435
      Fuchsia-Auto-Submit: Paul Kirth <paul...@google.com>
      Reviewed-by: Chris Drouillard <cdr...@google.com>
      Commit-Queue: Auto-Submit <auto-...@fuchsia-infra.iam.gserviceaccount.com>

      ---
      M src/storage/lib/fs_management/cpp/options_test.cc
      1 file changed, 0 insertions(+), 2 deletions(-)

      diff --git a/src/storage/lib/fs_management/cpp/options_test.cc b/src/storage/lib/fs_management/cpp/options_test.cc
      index ebb0a88..e3ddf16 100644
      --- a/src/storage/lib/fs_management/cpp/options_test.cc
      +++ b/src/storage/lib/fs_management/cpp/options_test.cc
      @@ -10,8 +10,6 @@

      namespace {

      -const std::string kTestBinary = "/test/binary";
      -
      void AssertStartOptionsEqual(const fuchsia_fs_startup::wire::StartOptions& a,
      const fuchsia_fs_startup::wire::StartOptions& b) {
      ASSERT_EQ(a.read_only, b.read_only);

      To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-MessageType: merged
      Gerrit-Project: fuchsia
      Gerrit-Branch: main
      Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
      Gerrit-Change-Number: 933435
      Gerrit-PatchSet: 3
      Gerrit-Owner: Paul Kirth <paul...@google.com>
      Gerrit-Reviewer: Auto-Submit <auto-...@fuchsia-infra.iam.gserviceaccount.com>
      Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
      Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
      Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
      Gerrit-Reviewer: Paul Kirth <paul...@google.com>
      Gerrit-CC: Adam Barth <aba...@google.com>

      --
      You received this message because you are subscribed to the Google Groups "owners-override" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
      To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/3dd6be3977ca15051ad6cace11b8021b7982a5b2-HTML%40fuchsia-review.googlesource.com.

      'GI Roller (Gerrit)' via owners-override

      unread,
      Oct 19, 2023, 2:14:38 PM10/19/23
      to Paul Kirth, CQ Bot, Auto-Submit, Adam Barth, Chris Drouillard, James Sullivan, Owners Override

        To view, visit change 933435. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-MessageType: comment
        Gerrit-Project: fuchsia
        Gerrit-Branch: main
        Gerrit-Change-Id: I6285d767044fede29366cd0f626c023af39299a9
        Gerrit-Change-Number: 933435
        Gerrit-PatchSet: 3
        Gerrit-Owner: Paul Kirth <paul...@google.com>
        Gerrit-Reviewer: Auto-Submit <auto-...@fuchsia-infra.iam.gserviceaccount.com>
        Gerrit-Reviewer: Chris Drouillard <cdr...@google.com>
        Gerrit-Reviewer: James Sullivan <jfsu...@google.com>
        Gerrit-Reviewer: Owners Override <owners-...@fuchsia.dev>
        Gerrit-Reviewer: Paul Kirth <paul...@google.com>
        Gerrit-CC: Adam Barth <aba...@google.com>
        Gerrit-Comment-Date: Thu, 19 Oct 2023 18:14:31 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No

        --
        You received this message because you are subscribed to the Google Groups "owners-override" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to owners-overri...@fuchsia.dev.
        To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/owners-override/e713d29c5c15d4e4295e5cf292e41e576fad6315-EmailReviewComments-HTML%40fuchsia-review.googlesource.com.
        Reply all
        Reply to author
        Forward
        0 new messages