Add option to disable __deallocate #warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 12 Jul 2016 14:39:13 +0000 (14:39 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 12 Jul 2016 14:39:13 +0000 (14:39 +0000)
commit6fe307334f4eabbb780870c1b566881cb4631e16
tree0e12593b6c0ba85e3ef264a81b6b4f0c6790db80
parent92aa427bb864fe7494cf81766ecc988a025112f1
Add option to disable __deallocate #warning

From r229162:
  Visual Studio's SAL extension uses a macro named __deallocate. This
  macro is used pervasively
Using -Werror when building for Windows can force the use of -Wno-#warnings
specifically because of this __deallocate #warning. Instead of forcing
builds to disable all #warnings, this option allows libc++ to be built
without this particular warning, while leaving other #warnings enabled.

Patch by Dave Lee!

llvm-svn: 275172
libcxx/CMakeLists.txt
libcxx/include/__undef___deallocate
libcxx/include/__undef_min_max