Xcode: certain warnings are always enabled (-Wmost)
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Looking at cmGlobalXCodeGenerator.cxx
, I find that the option -Wmost
is always enabled. It would be better if this option would be configurable. When this option is specified, all the fine grained settings that can be set in Xcode are always overwritten. Because of the way that this option is added in the generator, no post processing step will allow me to remove them:
if (this->XcodeVersion >= 30)
{
cmXCodeObject *group = this->CreateObject(cmXCodeObject::OBJECT_LIST);
group->AddObject(this->CreateString("-Wmost"));
group->AddObject(this->CreateString("-Wno-four-char-constants"));
group->AddObject(this->CreateString("-Wno-unknown-pragmas"));
buildSettings->AddAttribute("WARNING_CFLAGS", group);
}
else
{
buildSettings->AddAttribute("WARNING_CFLAGS",
this->CreateString(
"-Wmost -Wno-four-char-constants"
" -Wno-unknown-pragmas"));
}