Add -Wno-unused-variable if present.