libfdisk, unshare: fix gcc-4.9.4 warnings

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig 2020-06-19 17:25:25 +02:00
parent 51355bea70
commit 9eba847689
No known key found for this signature in database
GPG Key ID: 22C5333D922537D2
2 changed files with 2 additions and 2 deletions

View File

@ -2712,7 +2712,7 @@ int fdisk_gpt_set_npartitions(struct fdisk_context *cxt, uint32_t nents)
struct fdisk_gpt_label *gpt;
size_t new_size;
uint32_t old_nents;
uint64_t first_usable, last_usable;
uint64_t first_usable, last_usable = 0ULL;
int rc;
assert(cxt);

View File

@ -667,7 +667,7 @@ int main(int argc, char *argv[])
.pid = 0,
};
struct __user_cap_data_struct payload[_LINUX_CAPABILITY_U32S_3] = { 0 };
struct __user_cap_data_struct payload[_LINUX_CAPABILITY_U32S_3] = {{ 0 }};
int cap;
uint64_t effective;