Only add -Wno-unused-result if supported.