mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: Remove gcc 4.6 "set but not used" warnings
A number of the dtc testcases trigger the new "variable set but not used" warning from gcc 4.6. That is they have variables which are assigned, but then never read after that point. In a couple of cases this is just because the variables aren't needed, so this patch removes them. In subnode_offset.c, it's because one pair of variables we clearly intended to test we don't actually test. This patch also adds this missing check. This patch makes the testsuite compile clean with gcc 4.6. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
b43335a238
commit
83df28bd39
3 changed files with 10 additions and 8 deletions
|
@ -104,5 +104,9 @@ int main(int argc, char *argv[])
|
|||
FAIL("Mismatch between subnode_offset (%d) and path_offset (%d)",
|
||||
subsubnode2_offset, subsubnode2_offset_p);
|
||||
|
||||
if (subsubnode2_offset2 != subsubnode2_offset2_p)
|
||||
FAIL("Mismatch between subnode_offset (%d) and path_offset (%d)",
|
||||
subsubnode2_offset2, subsubnode2_offset2_p);
|
||||
|
||||
PASS();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue