Avoid redundant redeclaration of GetWarnings(const string&)