commit | 8ef8f431aaeed3d7418959c81dfaa677b44f05ed | [log] [tgz] |
---|---|---|
author | Matt Beaumont-Gay <matthewbg@google.com> | Mon Dec 12 22:35:02 2011 +0000 |
committer | Matt Beaumont-Gay <matthewbg@google.com> | Mon Dec 12 22:35:02 2011 +0000 |
tree | 68d9546a21321966543b909a88de8da676daf219 | |
parent | 364a59ed8f0b3adb6a9eb9f2d687650ec1d0d8e5 [diff] |
Suppress -Warray-bounds in certain cases involving macros from system headers. The motivation here is a "clever" implementation of strncmp(), which peels the first few comparisons via chained conditional expressions which ensure that the input arrays are known at compile time to be sufficiently large. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146430 91177308-0d34-0410-b5e6-96231b3b80d8