Skip to content

Commit 8b38076

Browse files
authored
Merge pull request #6437 from ppenzin/warnings-galore
Reenable implicit function declaration warnings
2 parents bf4e24d + 453a7d0 commit 8b38076

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,6 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
294294

295295
set(CMAKE_CXX_STANDARD 11)
296296

297-
# CC WARNING FLAGS
298-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
299-
-Wno-implicit-function-declaration"
300-
)
301-
302297
# todo: fix general visibility of the interface
303298
# do not set to `fvisibility=hidden` as it is going to
304299
# prevent the required interface is being exported
@@ -330,7 +325,6 @@ if(CLR_CMAKE_PLATFORM_XPLAT)
330325
-Wno-null-conversion\
331326
-Wno-return-type\
332327
-Wno-switch\
333-
-Wno-implicit-function-declaration\
334328
-Wno-int-to-pointer-cast\
335329
-Wno-tautological-constant-compare\
336330
-Wno-enum-compare-switch\

lib/Backend/BailOut.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//-------------------------------------------------------------------------------------------------------
55

66
#include "Backend.h"
7+
#include "CommonPal.h"
78
#ifdef ENABLE_SCRIPT_DEBUGGING
89
#include "Debug/DebuggingFlags.h"
910
#include "Debug/DiagProbe.h"

lib/Common/CommonPal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ __forceinline void * _AddressOfReturnAddress()
516516
{
517517
return (void*)((char*) __builtin_frame_address(0) + sizeof(void*));
518518
}
519+
#else
520+
extern "C" void * _AddressOfReturnAddress(void);
519521
#endif
520522
#else
521523
#error _AddressOfReturnAddress and _ReturnAddress not defined for this platform

pal/inc/pal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ Module Name:
4747
#include <ctype.h>
4848
#endif
4949

50+
#if !defined(static_assert)
51+
#define static_assert _Static_assert
52+
#endif
53+
5054
#if defined(__APPLE__)
5155
#ifndef __IOS__
5256
#include "TargetConditionals.h"

0 commit comments

Comments
 (0)