All of lore.kernel.org
 help / color / mirror / Atom feed
* uninitialized variables in the 5.4 release
@ 2012-04-19 17:52 Lars Müller
       [not found] ` <20120419175242.GR12994-aSaWmTCphX8QgCKCZH8Z8g@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Lars Müller @ 2012-04-19 17:52 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA


[-- Attachment #1.1: Type: text/plain, Size: 355 bytes --]

Hi,

older gcc versions (4.3 in the case of SUSE Linux Enterprise 11 SP 1 and
SP 2) complain about uninitialized variables in the recent 5.4 release.

The attached patch makes the build process a bit quieter.

Cheers,

Lars
-- 
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team + SUSE Labs
SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany

[-- Attachment #1.2: bku-uid-gid-uninitialized.diff --]
[-- Type: text/x-patch, Size: 615 bytes --]

Author: Lars Mueller <lmuelle-IBi9RG/b67k@public.gmane.org>
Subject: cifs-utils build warns bkupuid and bkupgid may be used uninitialized
Bugzilla: na

Index: cifs-utils-5.4/mount.cifs.c
===================================================================
--- cifs-utils-5.4.orig/mount.cifs.c
+++ cifs-utils-5.4/mount.cifs.c
@@ -863,8 +863,8 @@ parse_options(const char *data, struct p
 	int got_uid = 0;
 	int got_cruid = 0;
 	int got_gid = 0;
-	uid_t uid, cruid = 0, bkupuid;
-	gid_t gid, bkupgid;
+	uid_t uid, cruid = 0, bkupuid = 0;
+	gid_t gid, bkupgid = 0;
 	char *ep;
 	struct passwd *pw;
 	struct group *gr;

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-20 15:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-19 17:52 uninitialized variables in the 5.4 release Lars Müller
     [not found] ` <20120419175242.GR12994-aSaWmTCphX8QgCKCZH8Z8g@public.gmane.org>
2012-04-19 18:01   ` Jeff Layton
     [not found]     ` <20120419140144.7b435b50-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2012-04-20  5:36       ` Suresh Jayaraman
2012-04-20 15:47   ` Jeff Layton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.