mirror of
https://github.com/json-c/json-c.git
synced 2026-03-23 06:59:06 +08:00
Issue #240: add arbitrary use of val's in foreach loops to squash warnings about unused variables.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
==== delete-in-loop test starting ====
|
||||
Key at index 0 is [foo1] (kept)
|
||||
Key at index 1 is [foo2] (kept)
|
||||
Key at index 2 is [deleteme] (deleted)
|
||||
Key at index 3 is [foo3] (kept)
|
||||
Key at index 0 is [foo1] 0 (kept)
|
||||
Key at index 1 is [foo2] 0 (kept)
|
||||
Key at index 2 is [deleteme] 0 (deleted)
|
||||
Key at index 3 is [foo3] 0 (kept)
|
||||
==== replace-value first loop starting ====
|
||||
Key at index 0 is [foo1]
|
||||
Key at index 1 is [foo2]
|
||||
Key at index 0 is [foo1] 0
|
||||
Key at index 1 is [foo2] 0
|
||||
replacing value for key [foo2]
|
||||
Key at index 2 is [foo3]
|
||||
Key at index 2 is [foo3] 0
|
||||
==== second loop starting ====
|
||||
Key at index 0 is [foo1]
|
||||
Key at index 1 is [foo2]
|
||||
Key at index 0 is [foo1] 0
|
||||
Key at index 1 is [foo2] 0
|
||||
pointer for key [foo2] does match
|
||||
Key at index 2 is [foo3]
|
||||
Key at index 2 is [foo3] 0
|
||||
|
||||
Reference in New Issue
Block a user