summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorAndrew Nayenko <resver@gmail.com>2013-02-24 23:08:40 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2013-02-25 01:08:00 +0400
commit57162eb084ee80c2f024663c1bfc10c82bb83b20 (patch)
tree13511543dfe0d3daad1a4d30130e76700fac5975 /output
parent842512c527160f79a4d9b70318143a43d673c043 (diff)
downloadnasm-57162eb084ee80c2f024663c1bfc10c82bb83b20.tar.gz
nasm-57162eb084ee80c2f024663c1bfc10c82bb83b20.tar.bz2
nasm-57162eb084ee80c2f024663c1bfc10c82bb83b20.zip
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>
Diffstat (limited to 'output')
-rw-r--r--output/outelf32.c2
-rw-r--r--output/outelf64.c2
-rw-r--r--output/outelfx32.c2
3 files changed, 3 insertions, 3 deletions
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;
}