summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-19 17:47:11 +0100
committerAnthony G. Basile <blueness@gentoo.org>2014-02-21 10:06:53 -0500
commit63a51878845e21293bf8f808a1e1c8c4bb775332 (patch)
treee740d1b0e15b5cd83cc7a7d17b8c45871c8def1b /src
parentc785a1cb69ba6dfa0b6ff634ced61da49c68a87d (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. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-ctrl.c b/src/udev/udev-ctrl.c
index 7695404bca..522195ced7 100644
--- a/src/udev/udev-ctrl.c
+++ b/src/udev/udev-ctrl.c
@@ -193,7 +193,7 @@ static inline int accept4_fallback(int sockfd)
struct udev_ctrl_connection *udev_ctrl_get_connection(struct udev_ctrl *uctrl)
{
struct udev_ctrl_connection *conn;
- struct ucred ucred;
+ struct ucred ucred = {};
const int on = 1;
int r;