Commit d8d0524a authored by Helge Deller's avatar Helge Deller

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: default avatarHelge Deller <deller@gmx.de>
parent 850df984
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
DECLARE_PER_CPU(struct exception_data, exception_data); DECLARE_PER_CPU(struct exception_data, exception_data);
#define preserve_branch(label) do { \ #define preserve_branch(label) do { \
volatile int dummy; \ volatile int dummy = 0; \
/* The following branch is never taken, it's just here to */ \ /* The following branch is never taken, it's just here to */ \
/* prevent gcc from optimizing away our exception code. */ \ /* prevent gcc from optimizing away our exception code. */ \
if (unlikely(dummy != dummy)) \ if (unlikely(dummy != dummy)) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment