Skip to content

Commit 9cc4bf4

Browse files
cgwalterslukash
authored andcommitted
tests: Squash unused variable warnings
I'd like to build rpm-ostree with `-Werror=unused-variable`.
1 parent a900a42 commit 9cc4bf4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/hawkey/test_subject.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ const char inp_fof_na[] = "four-of-fish-3.6.9.i686";
4242
/* with profile */
4343
const char module_nsvcap[] = "module-name:stream:1:b86c854:x86_64/profile";
4444
const char module_nsvap[] = "module-name:stream:1::x86_64/profile";
45-
const char module_nsvcp[] = "module-name:stream:1:b86c854/profile";
4645
const char module_nsvp[] = "module-name:stream:1/profile";
4746
const char module_nsap[] = "module-name:stream::x86_64/profile";
4847
const char module_nsp[] = "module-name:stream/profile";

tests/libdnf/transaction/RpmItemTest.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ RpmItemTest::testGetTransactionItems()
112112
std::chrono::duration< double > read_duration = read_finish - read_start;
113113

114114
auto createMs = std::chrono::duration_cast< std::chrono::milliseconds >(create_duration);
115+
(void)createMs;
115116
auto readMs = std::chrono::duration_cast< std::chrono::milliseconds >(read_duration);
117+
(void)readMs;
116118

117119
//CPPUNIT_ASSERT(createMs.count() == 0);
118120
//CPPUNIT_ASSERT(readMs.count() == 0);

0 commit comments

Comments
 (0)