Skip to content

Commit d47ea6a

Browse files
authored
Fix x86 warning on latest VS dogfood (#50607)
* Fix x86 warning on latest VS dogfood * Delete unnecessary warning disable
1 parent 5b4d984 commit d47ea6a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

eng/native/configurecompiler.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ if (MSVC)
498498
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4456>) # declaration of 'identifier' hides previous local declaration
499499
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4457>) # declaration of 'identifier' hides function parameter
500500
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4458>) # declaration of 'identifier' hides class member
501+
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4733>) # Inline asm assigning to 'FS:0' : handler not registered as safe handler
501502
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4838>) # conversion from 'type_1' to 'type_2' requires a narrowing conversion
502503
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4960>) # 'function' is too big to be profiled
503504
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX>:/wd4961>) # No profile data was merged into '.pgd file', profile-guided optimizations disabled

src/coreclr/vm/i386/excepcpu.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
#ifndef FEATURE_EH_FUNCLETS
2424
class Thread;
2525

26-
#if defined(_MSC_VER)
27-
#pragma warning(disable:4733) // Inline asm assigning to `FS:0` : handler not registered as safe handler
28-
// Actually, the handler getting set is properly registered
29-
#endif
30-
3126
#define INSTALL_SEH_RECORD(record) \
3227
{ \
3328
(record)->Next = (PEXCEPTION_REGISTRATION_RECORD)__readfsdword(0); \

0 commit comments

Comments
 (0)