Guard Clang and GCC specific pragmas. Patch from STL@microsoft.com

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@267836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-04-28 01:49:03 +00:00
parent d446308c9c
commit 4596c29195
30 changed files with 62 additions and 0 deletions

View File

@@ -78,9 +78,11 @@
#include <cstdarg>
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-zero-length"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif
int main()
{