diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-19 13:57:21 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-11-20 12:57:33 -0600 |
commit | a5201ea4d0e670b868f5c2d2b944395e865a013c (patch) | |
tree | df8a8f9664a96b01606f6491797d859f898ccdc3 /cpukit/libdl | |
parent | sys/mman.h: New file. Clean up and add supporting stubs (diff) | |
download | rtems-a5201ea4d0e670b868f5c2d2b944395e865a013c.tar.bz2 |
libdl/rtl-mdreloc-powerpc.c: Fix warnings
This patch addresses the following warnings:
+ The variable "target" was unused.
+ The parentheses in the expression around line 72 were ambiguous.
Diffstat (limited to 'cpukit/libdl')
-rw-r--r-- | cpukit/libdl/rtl-mdreloc-powerpc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libdl/rtl-mdreloc-powerpc.c b/cpukit/libdl/rtl-mdreloc-powerpc.c index d1c0a4fa4e..6909167704 100644 --- a/cpukit/libdl/rtl-mdreloc-powerpc.c +++ b/cpukit/libdl/rtl-mdreloc-powerpc.c @@ -35,7 +35,6 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj, const Elf_Byte syminfo, const Elf_Word symvalue) { - Elf_Addr target = 0; Elf_Addr* where; Elf_Word tmp; uint32_t mask = 0; @@ -72,7 +71,7 @@ rtems_rtl_elf_relocate_rela (const rtems_rtl_obj_t* obj, mask = 0x3fffffc; } tmp = (symvalue + rela->r_addend) >> 2; - if (tmp > (1<<bits -1 )) { + if (tmp > ((1<<bits) - 1 )) { printf("Overflow ADDR14/ADDR24\n"); return false; } |