Fix new glibc warnings about warn_unused_result.