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

[lvm-devel] [PATCH 28/30] Skip uninitialized macro for scan-build



scan-build reports assigment of ununitialised values.

Signed-off-by: Zdenek Kabelac <zkabelac redhat com>
---
 lib/misc/util.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/misc/util.h b/lib/misc/util.h
index fcda369..59e6980 100644
--- a/lib/misc/util.h
+++ b/lib/misc/util.h
@@ -25,7 +25,11 @@
 		     (void) (&_a == &_b); \
 		     _a > _b ? _a : _b; })
 
+#ifndef  __clang__
 #define uninitialized_var(x) x = x
+#else
+#define uninitialized_var(x) x
+#endif
 
 #define KERNEL_VERSION(major, minor, release) (((major) << 16) + ((minor) << 8) + (release))
 
-- 
1.7.3.1


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