mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
suppressing -Wundef in clang (GTest emitted)
This commit is contained in:
parent
43aca2646b
commit
87eaa45445
@ -23,6 +23,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
#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"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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,7 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
#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"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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,7 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
//disable warnings from gtest
|
//disable warnings from gtest
|
||||||
|
#pragma GCC diagnostic ignored "-Wundef"
|
||||||
#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,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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,7 @@
|
|||||||
#if __clang__ || __GNUC__
|
#if __clang__ || __GNUC__
|
||||||
//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 "-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