various: silence gcc warnings

AFAICT, gcc is just being stupid in all those cases.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-04-01 12:02:25 +02:00
parent 1f8fb21c42
commit aff81b1851
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -324,7 +324,7 @@ static bool location_is_resume_device(const HibernateLocation *location, dev_t s
int find_hibernate_location(HibernateLocation **ret_hibernate_location) {
_cleanup_fclose_ FILE *f = NULL;
_cleanup_(hibernate_location_freep) HibernateLocation *hibernate_location = NULL;
dev_t sys_resume;
dev_t sys_resume = 0; /* Unnecessary initialization to appease gcc */
uint64_t sys_offset = 0;
bool resume_match = false;
int r;