aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2013-02-26 18:06:48 -0500
committerHelge Deller <deller@gmx.de>2013-03-02 13:56:27 -0500
commitd8d0524a39056dbdafece1ed65ae51afc711c8b5 (patch)
tree843f3264fae4813cfb4e67366f9eed9e5778c49c /arch/parisc
parent850df98434b91d5f3c2e9e13f45c78c4304a45b1 (diff)
parisc: avoid unitialized variable warning in pa_memcpy()
Avoid this warning, while still prevent gcc from optimizing away the exception code: arch/parisc/lib/memcpy.c: In function ‘pa_memcpy’: arch/parisc/lib/memcpy.c:256:2: warning: ‘dummy’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc')
-rw-r--r--arch/parisc/lib/memcpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/lib/memcpy.c b/arch/parisc/lib/memcpy.c
index 1dbca5c31b3c..a49cc812df8a 100644
--- a/arch/parisc/lib/memcpy.c
+++ b/arch/parisc/lib/memcpy.c
@@ -68,7 +68,7 @@
68DECLARE_PER_CPU(struct exception_data, exception_data); 68DECLARE_PER_CPU(struct exception_data, exception_data);
69 69
70#define preserve_branch(label) do { \ 70#define preserve_branch(label) do { \
71 volatile int dummy; \ 71 volatile int dummy = 0; \
72 /* The following branch is never taken, it's just here to */ \ 72 /* The following branch is never taken, it's just here to */ \
73 /* prevent gcc from optimizing away our exception code. */ \ 73 /* prevent gcc from optimizing away our exception code. */ \
74 if (unlikely(dummy != dummy)) \ 74 if (unlikely(dummy != dummy)) \