chiark / gitweb /
tree-wide: some work-arounds for gcc false positives regarding uninitialized variables
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Jun 2016 11:20:02 +0000 (13:20 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000 (10:13 +0200)
src/basic/process-util.c
src/network/networkd-brvlan.c

index 5bf0a18..c9115f8 100644 (file)
@@ -558,7 +558,7 @@ int wait_for_terminate(pid_t pid, siginfo_t *status) {
                         if (errno == EINTR)
                                 continue;
 
-                        return -errno;
+                        return negative_errno();
                 }
 
                 return 0;
index d0861f4..72be726 100644 (file)
@@ -64,7 +64,7 @@ static int append_vlan_info_data(Link *const link, sd_netlink_message *req, uint
         struct bridge_vlan_info br_vlan;
         int i, j, k, r, done, cnt;
         uint16_t begin, end;
-        bool untagged;
+        bool untagged = false;
 
         assert(link);
         assert(req);