]> sourceware.org Git - lvm2.git/commitdiff
Macro uninitialized_var gives warnings in static analysis
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Oct 2010 10:04:34 +0000 (10:04 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 26 Oct 2010 10:04:34 +0000 (10:04 +0000)
Deactivate uninitialized_var() macro for clang static analysis.

lib/misc/util.h

index fcda36911d574759ae5d20013d6ba7fd2edb4bc3..0bcfd219659296e53c0286b9895dcd9dde39e64b 100644 (file)
                     (void) (&_a == &_b); \
                     _a > _b ? _a : _b; })
 
+#ifdef __clang__
+#define uninitialized_var(x) x
+#else
 #define uninitialized_var(x) x = x
+#endif
 
 #define KERNEL_VERSION(major, minor, release) (((major) << 16) + ((minor) << 8) + (release))
 
This page took 0.037028 seconds and 5 git commands to generate.