summaryrefslogtreecommitdiff
path: root/src/shared/efivars.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-19 17:47:11 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-19 17:53:50 +0100
commit39883f622f392d8579f4428fc5a789a102efbb10 (patch)
treeba82e4a0a65f9e0fe937dfa408860b9f3d25bab6 /src/shared/efivars.c
parentca721e36083e70709ce21376c0b89bc797e53f91 (diff)
make gcc shut up
If -flto is used then gcc will generate a lot more warnings than before, among them a number of use-without-initialization warnings. Most of them without are false positives, but let's make them go away, because it doesn't really matter.
Diffstat (limited to 'src/shared/efivars.c')
-rw-r--r--src/shared/efivars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index 000dae9de0..5ee8f1eb0b 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -130,7 +130,7 @@ int efi_get_variable(
int efi_get_variable_string(sd_id128_t vendor, const char *name, char **p) {
_cleanup_free_ void *s = NULL;
- size_t ss;
+ size_t ss = 0;
int r;
char *x;
@@ -393,7 +393,7 @@ fail:
static int read_usec(sd_id128_t vendor, const char *name, usec_t *u) {
_cleanup_free_ char *j = NULL;
int r;
- uint64_t x;
+ uint64_t x = 0;
assert(name);
assert(u);