Put -Wno-unused-result to fix GCC errors