From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Klauser Date: Sun, 16 Jan 2005 18:09:00 +0000 Subject: [PATCH] Fix GCC4 compile warnings Message-Id: <41EAADBC.3050200@access.unizh.ch> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------020201050606050604040202" List-Id: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------020201050606050604040202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi I tried to compile udev 050plus with the GCC 4.0 snapshot 200412119 and got two errors about possibly uninitialized structs, so I fixed this. The patch against udev050plus is attached. Thanks, Tobias --------------020201050606050604040202 Content-Type: text/plain; name="udev050plus-gcc4-uninitialized-warning.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="udev050plus-gcc4-uninitialized-warning.patch" --- udev-050plus.orig/udev_sysfs.c 2004-12-19 17:42:11.000000000 +0100 +++ udev-050plus/udev_sysfs.c 2005-01-16 19:00:32.978126432 +0100 @@ -381,7 +381,7 @@ struct sysfs_class_device *wait_class_device_open(const char *path) { - struct sysfs_class_device *class_dev; + struct sysfs_class_device *class_dev = NULL; int loop; loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND; @@ -450,7 +450,7 @@ struct sysfs_device *wait_devices_device_open(const char *path) { - struct sysfs_device *devices_dev; + struct sysfs_device *devices_dev = NULL; int loop; loop = WAIT_MAX_SECONDS * WAIT_LOOP_PER_SECOND; --------------020201050606050604040202-- ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel