This is the mail archive of the lvm2-cvs@sourceware.org mailing list for the LVM2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

LVM2/lib/misc util.h


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2011-04-08 14:11:40

Modified files:
	lib/misc       : util.h 

Log message:
	Newer gcc doesn't need this trick
	
	In fact it now generates an opposite warning about using undefined variable.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/misc/util.h.diff?cvsroot=lvm2&r1=1.7&r2=1.8

--- LVM2/lib/misc/util.h	2010/10/26 10:04:34	1.7
+++ LVM2/lib/misc/util.h	2011/04/08 14:11:40	1.8
@@ -25,7 +25,7 @@
 		     (void) (&_a == &_b); \
 		     _a > _b ? _a : _b; })
 
-#ifdef __clang__
+#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6)
 #define uninitialized_var(x) x
 #else
 #define uninitialized_var(x) x = x


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]