Re: parent (GUdevDevice) uninitialized in _update_s390_subchannels

Le 04/11/2010 19:40, Mathieu Trudel-Lapierre a écrit :

> I noticed NM fails to build on Ubuntu Natty:

> `nm-device-ethernet.c
> cc1: warnings being treated as errors
> nm-device-ethernet.c: In function ‘constructor’:
> nm-device-ethernet.c:400:5: error: ‘parent’ may be used uninitialized in
> this function

Attached is the patch I applied:

-	GUdevDevice *parent;
+	GUdevDevice *parent = NULL; // disable gcc warning because...?

This just buries the warning. Are you sure the warning is wrong? If yes it deserves a comment.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]