Pattern without wildcard is not a pattern
Merge pull request #6679 from wmtan/FixBuildWarning

Pattern without wildcard is not a pattern