Skip to content

Commit 49dbcd7

Browse files
gulfemsavrunCQ Bot
authored andcommitted
[netdevice] Remove const from MockNetworkDeviceIfc
llvm/llvm-project#121419 added -Wignored-qualifiers diagnostic for cv-qualified base classes. This patch removes const from MockNetworkDeviceIfc to fix the -Wignored-qualifiers error similar to https://fxrev.dev/1192542. Bug: 391704289 Change-Id: I01fe73aa25850fa21d3ac10a14e894aed51e5419 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1194243 Fuchsia-Auto-Submit: Gulfem Savrun Yeniceri <[email protected]> Reviewed-by: Bruno Dal Bo <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
1 parent d10df7b commit 49dbcd7

File tree

1 file changed

+2
-2
lines changed
  • src/connectivity/ethernet/drivers/ethernet/netdevice-migration

1 file changed

+2
-2
lines changed

src/connectivity/ethernet/drivers/ethernet/netdevice-migration/unit-tests.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class NetdeviceMigrationTest : public ::testing::Test {
248248
}
249249

250250
MockDevice& Parent() { return *parent_; }
251-
testing::StrictMock<const MockNetworkDeviceIfc>& MockNetworkDevice() {
251+
testing::StrictMock<MockNetworkDeviceIfc>& MockNetworkDevice() {
252252
return mock_network_device_ifc_;
253253
}
254254
testing::StrictMock<MockEthernetImpl>& MockEthernet() { return mock_ethernet_impl_; }
@@ -257,7 +257,7 @@ class NetdeviceMigrationTest : public ::testing::Test {
257257

258258
private:
259259
const std::shared_ptr<MockDevice> parent_;
260-
testing::StrictMock<const MockNetworkDeviceIfc> mock_network_device_ifc_;
260+
testing::StrictMock<MockNetworkDeviceIfc> mock_network_device_ifc_;
261261
testing::StrictMock<MockEthernetImpl> mock_ethernet_impl_;
262262
std::unique_ptr<netdevice_migration::NetdeviceMigration> device_;
263263
bool queued_rx_space_ = false;

0 commit comments

Comments
 (0)