diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-05-05 12:35:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-05-06 03:42:18 +0200 |
commit | e4ec3180c8ba792cbf92d8fda340116f016835d1 (patch) | |
tree | 8a60b7b0b7ca5ae0938b16cc1c7c66fc07c03c0f /cmake/opentrack-platform.cmake | |
parent | c033bacae076580d86458496d15af608e4f34042 (diff) |
cmake: cleanup msvc
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r-- | cmake/opentrack-platform.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 28d52962..b5c131a1 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -145,6 +145,21 @@ if(MSVC) add_link_options(-WX) add_link_options(-ignore:4020) add_link_options(-ignore:4217) # debug build + + #C4457: declaration of 'id' hides function parameter + #C4456: declaration of 'i' hides previous local declaration + #C4263 - member function does not override any base class virtual member function + #C4264 - no override available for virtual member function from base class, function is hidden + #C4265 - class has virtual functions, but destructor is not virtual + #C4266 - no override available for virtual member function from base type, function is hidden + #C4928 - illegal copy-initialization, more than one user-defined conversion has been implicitly applied + #C4200: nonstandard extension used: zero-sized array in struct/union + + set(warns-disable 4530 4577 4789 4244 4702 4530 4244 4127 4458 4456 4251 4100 4702 4457 4200) + + foreach(i ${warns-disable}) + add_compile_options(-wd${i}) + endforeach() endif() if(APPLE) |