fixed unused return warnings from gcc -D_FORTIFY_SOURCE=2