mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-13 17:57:12 +08:00
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:
parent
842512c527
commit
57162eb084
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user