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

Zdenek Kabelac <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <1191037c596039e3f71a01b02a4534b92fb39ec3.1287994530.git.zkabelac@redhat.com>
scan-build reports assigment of ununitialised values.

Signed-off-by: Zdenek Kabelac <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.