gcc in base doesn't support -Wno-unused-const-variable

remove it. Also remove the unneeded constant values it is
complaining about.