Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit bfbdd48

Browse files
committed
Merge pull request #107 from dotnet-bot/from-tfs
Merge changes from TFS
2 parents 89d4ba2 + 2646f6c commit bfbdd48

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ add_compile_options(-Wno-self-assign)
241241
add_compile_options(-Wno-bitfield-constant-conversion)
242242
add_compile_options(-Wno-unused-value)
243243

244+
add_compile_options(-Wno-unknown-warning-option)
245+
244246
#These seem to indicate real issues
245247
add_compile_options(-Wno-invalid-offsetof)
246248
add_compile_options(-Wno-return-type)

src/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ if(WIN32)
1414
enable_language(ASM_MASM)
1515
else(WIN32)
1616
enable_language(ASM)
17-
# This prevents inclusion of standard compiler headers
18-
add_compile_options(-nostdinc -nostdinc++)
17+
# This prevents inclusion of standard C compiler headers
18+
add_compile_options(-nostdinc)
19+
# This prevents inclusion of standard C++ compiler headers
20+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc++")
1921
endif(WIN32)
2022

2123
add_subdirectory(utilcode)

src/debug/daccess/daccess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4907,7 +4907,7 @@ ClrDataAccess::SetCodeNotifications(
49074907
/* [in, size_is(numTokens)] */ ULONG32 flags[],
49084908
/* [in] */ ULONG32 singleFlags)
49094909
{
4910-
HRESULT status;
4910+
HRESULT status = E_UNEXPECTED;
49114911

49124912
DAC_ENTER();
49134913

src/inc/ex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ Exception *ExThrowWithInnerHelper(Exception *inner);
977977
CAutoTryCleanup<STATETYPE> __autoCleanupTry(__state); \
978978
/* prevent annotations from being dropped by optimizations in debug */ \
979979
INDEBUG(static bool __alwayszero;) \
980-
INDEBUG(if(!VolatileLoad(&__alwayszero))) \
980+
INDEBUG(VolatileLoad(&__alwayszero);) \
981981
{ \
982982
/* this is necessary for Rotor exception handling to work */ \
983983
DEBUG_ASSURE_NO_RETURN_BEGIN(EX_TRY) \

src/pal/tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ add_definitions(-DPIC=1)
1010
add_definitions(-DBIT64=1)
1111
add_definitions(-D_WIN64=1)
1212

13+
add_compile_options(-Wno-empty-body)
14+
1315
add_subdirectory(palsuite)
1416

0 commit comments

Comments
 (0)