Skip to content

Commit

Permalink
Fix x86 warning on latest VS dogfood (dotnet#50607)
Browse files Browse the repository at this point in the history
* Fix x86 warning on latest VS dogfood

* Delete unnecessary warning disable
  • Loading branch information
jkotas authored Apr 1, 2021
1 parent 5b4d984 commit d47ea6a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions eng/native/configurecompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ if (MSVC)
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4456>) # declaration of 'identifier' hides previous local declaration
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4457>) # declaration of 'identifier' hides function parameter
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4458>) # declaration of 'identifier' hides class member
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4733>) # Inline asm assigning to 'FS:0' : handler not registered as safe handler
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4838>) # conversion from 'type_1' to 'type_2' requires a narrowing conversion
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4960>) # 'function' is too big to be profiled
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4961>) # No profile data was merged into '.pgd file', profile-guided optimizations disabled
Expand Down
5 changes: 0 additions & 5 deletions src/coreclr/vm/i386/excepcpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
#ifndef FEATURE_EH_FUNCLETS
class Thread;

#if defined(_MSC_VER)
#pragma warning(disable:4733) // Inline asm assigning to `FS:0` : handler not registered as safe handler
// Actually, the handler getting set is properly registered
#endif

#define INSTALL_SEH_RECORD(record) \
{ \
(record)->Next = (PEXCEPTION_REGISTRATION_RECORD)__readfsdword(0); \
Expand Down

0 comments on commit d47ea6a

Please sign in to comment.