mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
fixing suppression of gtest warnings for gcc
This commit is contained in:
parent
b39a9732f8
commit
9a88262544
@ -24,6 +24,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -27,6 +27,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
|
|
||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wundef"
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
|
#endif
|
||||||
|
#if __clang__
|
||||||
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
#pragma GCC diagnostic ignored "-Wglobal-constructors"
|
||||||
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
#pragma GCC diagnostic ignored "-Wused-but-marked-unused"
|
||||||
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
#pragma GCC diagnostic ignored "-Wcovered-switch-default"
|
||||||
|
Loading…
Reference in New Issue
Block a user