Quiet gcc-4.8 warnings about unused results

The warning -Wunused-result is on by default, so we'd like to deal
with those before adding routine testing to Jenkins with gcc-4.8.

Change-Id: I905d43e7fa50229b38d2d3d9e642372790f73899