From 57162eb084ee80c2f024663c1bfc10c82bb83b20 Mon Sep 17 00:00:00 2001 From: Andrew Nayenko Date: Sun, 24 Feb 2013 23:08:40 +0400 Subject: [PATCH] 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 Signed-off-by: Cyrill Gorcunov --- output/outelf32.c | 2 +- output/outelf64.c | 2 +- output/outelfx32.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/output/outelf32.c b/output/outelf32.c index 00b3f5e5..48f91776 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 97769727..8175aedc 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 914a83e8..57bbf75b 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; } -- 2.11.4.GIT