From: Frantisek Sumsal Date: Sat, 20 Aug 2022 18:38:17 +0000 (+0200) Subject: sd-journal: drop an unused variable X-Git-Tag: v252-rc1~391^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94510784e10fcf811bca87e9677291bd8cbeac32;p=thirdparty%2Fsystemd.git sd-journal: drop an unused variable --- diff --git a/src/libsystemd/sd-journal/journal-verify.c b/src/libsystemd/sd-journal/journal-verify.c index 40aff67ee82..b9f6a161edc 100644 --- a/src/libsystemd/sd-journal/journal-verify.c +++ b/src/libsystemd/sd-journal/journal-verify.c @@ -822,7 +822,7 @@ int journal_file_verify( uint64_t entry_seqnum = 0, entry_monotonic = 0, entry_realtime = 0; sd_id128_t entry_boot_id = {}; /* Unnecessary initialization to appease gcc */ bool entry_seqnum_set = false, entry_monotonic_set = false, entry_realtime_set = false, found_main_entry_array = false; - uint64_t n_weird = 0, n_objects = 0, n_entries = 0, n_data = 0, n_fields = 0, n_data_hash_tables = 0, n_field_hash_tables = 0, n_entry_arrays = 0, n_tags = 0; + uint64_t n_objects = 0, n_entries = 0, n_data = 0, n_fields = 0, n_data_hash_tables = 0, n_field_hash_tables = 0, n_entry_arrays = 0, n_tags = 0; usec_t last_usec = 0; _cleanup_close_ int data_fd = -1, entry_fd = -1, entry_array_fd = -1; _cleanup_fclose_ FILE *data_fp = NULL, *entry_fp = NULL, *entry_array_fp = NULL; @@ -1205,9 +1205,6 @@ int journal_file_verify( n_tags++; break; - - default: - n_weird++; } if (p == le64toh(f->header->tail_object_offset)) {