You can add -Wno-unused-function.