diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-10-29 02:15:43 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-12-04 19:51:23 -0500 |
commit | 423c01eac31fe9e6c9eee7bf45ace9abcd57251b (patch) | |
tree | f535d95958f6eb208f6e7f44c1e136df45e087fa /arch/m68k | |
parent | 3c46041769adecf3ed964cbd1e6bd4324d063450 (diff) |
m68k: fix unused variable warning in mempcy.c
When compiling for original 68000 or ColdFire targets you will get the
following warning when compiling arch/m68k/lib/memcpy.c:
CC arch/m68k/lib/memcpy.o
arch/m68k/lib/memcpy.c: In function ‘__builtin_memcpy’:
arch/m68k/lib/memcpy.c:13:15: warning: unused variable ‘temp1’
This is easily fixed by moving the definition of temp1 into the code block
where it is used.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/lib/memcpy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/lib/memcpy.c b/arch/m68k/lib/memcpy.c index 10ca051d56b8..c1e2dfb206f3 100644 --- a/arch/m68k/lib/memcpy.c +++ b/arch/m68k/lib/memcpy.c | |||
@@ -10,7 +10,7 @@ | |||
10 | void *memcpy(void *to, const void *from, size_t n) | 10 | void *memcpy(void *to, const void *from, size_t n) |
11 | { | 11 | { |
12 | void *xto = to; | 12 | void *xto = to; |
13 | size_t temp, temp1; | 13 | size_t temp; |
14 | 14 | ||
15 | if (!n) | 15 | if (!n) |
16 | return xto; | 16 | return xto; |
@@ -47,6 +47,7 @@ void *memcpy(void *to, const void *from, size_t n) | |||
47 | for (; temp; temp--) | 47 | for (; temp; temp--) |
48 | *lto++ = *lfrom++; | 48 | *lto++ = *lfrom++; |
49 | #else | 49 | #else |
50 | size_t temp1; | ||
50 | asm volatile ( | 51 | asm volatile ( |
51 | " movel %2,%3\n" | 52 | " movel %2,%3\n" |
52 | " andw #7,%3\n" | 53 | " andw #7,%3\n" |