]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/cls_log: remove unused variable 61030/head
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 25 Aug 2024 16:02:31 +0000 (12:02 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 10 Dec 2024 21:16:11 +0000 (16:16 -0500)
This line in the unit test get flagged by -Werror which is enabled by
default when compiling the unit tests in a container based environment.
Examining the code the warning appears correct and it should be enough
to just remove this variable.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/test/cls_log/test_cls_log.cc

index f8c1a32494a10933560d1b82801ff2534eaec1b6..91e38844deca59d8779105bbc3575cd660b9278c 100644 (file)
@@ -332,7 +332,6 @@ TEST_F(cls_log, trim_by_marker)
   utime_t start_time = ceph_clock_now();
   generate_log(ioctx, oid, 10, start_time, true);
 
-  utime_t zero_time;
   std::vector<cls_log_entry> log1;
   {
     list<cls_log_entry> entries;