get rid of "ignoring return value" warnings on some compilers