Fix warnings generated by clang 3.0

Fix warnings like this:

output/outelf32.c:2120:33: warning: equality comparison with extraneous
      parentheses [-Wparentheses-equality]
            if ((match->section == index)) {
                 ~~~~~~~~~~~~~~~^~~~~~~~
output/outelf32.c:2120:33: note: remove extraneous parentheses around the
      comparison to silence this warning
            if ((match->section == index)) {
                ~               ^       ~
output/outelf32.c:2120:33: note: use '=' to turn this equality comparison into
      an assignment
            if ((match->section == index)) {
                                ^~
                                =
1 warning generated.

Signed-off-by: Andrew Nayenko <resver@gmail.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Andrew Nayenko 2013-02-24 23:08:40 +04:00 committed by Cyrill Gorcunov
parent 842512c527
commit 57162eb084
3 changed files with 3 additions and 3 deletions

View File

@ -2117,7 +2117,7 @@ static void dwarf32_findsect(const int index)
if (dwarf_fsect) {
match = dwarf_fsect;
for (sinx = 0; sinx < dwarf_nsections; sinx++) {
if ((match->section == index)) {
if (match->section == index) {
dwarf_csect = match;
return;
}

View File

@ -2204,7 +2204,7 @@ static void dwarf64_findsect(const int index)
if (dwarf_fsect) {
match = dwarf_fsect;
for (sinx = 0; sinx < dwarf_nsections; sinx++) {
if ((match->section == index)) {
if (match->section == index) {
dwarf_csect = match;
return;
}

View File

@ -2159,7 +2159,7 @@ static void dwarfx32_findsect(const int index)
if (dwarf_fsect) {
match = dwarf_fsect;
for (sinx = 0; sinx < dwarf_nsections; sinx++) {
if ((match->section == index)) {
if (match->section == index) {
dwarf_csect = match;
return;
}