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 <re...@gm...>
diff --git a/output/outelf32.c b/output/outelf32.c
index 00b3f5e..48f9177 100644
--- a/output/outelf32.c
+++ b/output/outelf32.c
@@ -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;
}
diff --git a/output/outelf64.c b/output/outelf64.c
index 9776972..8175aed 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -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;
}
diff --git a/output/outelfx32.c b/output/outelfx32.c
index 914a83e..57bbf75 100644
--- a/output/outelfx32.c
+++ b/output/outelfx32.c
@@ -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;
}
--
Andrew Nayenko <re...@gm...>
|