]> git.ozlabs.org Git - ccan/commit
aga: Annotate unused return values
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jan 2016 12:11:31 +0000 (23:11 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 27 Jan 2016 12:11:31 +0000 (23:11 +1100)
commit9840dbd3e19eaee1ed82a445cd5e9f041a434f70
tree102d03a884e9f85fd203da0f527fc601357fa4b6
parent1eadb3a01e2a538567da824ba323dce9ecb78595
aga: Annotate unused return values

bfs_dequeue() and dfs_pop() discard the return values of lqueue_dequeue()
and lstack_pop() respectively.  This is correct, but causes warnings in
some compiler configurations (including the one currently used by
travis-ci.org).

Use the cast-to-void idiom to tell the compiler this is intentional.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
ccan/aga/bfs.c
ccan/aga/dfs.c