Changeset a5201ea in rtems


Ignore:
Timestamp:
Nov 19, 2014, 7:57:21 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
163519a0
Parents:
287843f
git-author:
Joel Sherrill <joel.sherrill@…> (11/19/14 19:57:21)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/20/14 18:57:33)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdl/rtl-mdreloc-powerpc.c

    r287843f ra5201ea  
    3636                             const Elf_Word              symvalue)
    3737{
    38   Elf_Addr  target = 0;
    3938  Elf_Addr* where;
    4039  Elf_Word tmp;
     
    7372      }
    7473      tmp = (symvalue + rela->r_addend) >> 2;
    75       if (tmp > (1<<bits -1 )) {
     74      if (tmp > ((1<<bits) - 1 )) {
    7675        printf("Overflow ADDR14/ADDR24\n");
    7776        return false;
Note: See TracChangeset for help on using the changeset viewer.