Skip to content

Commit 565f3ee

Browse files
davmasonam11
andauthored
Fix GCC warnings in test build (dotnet#60734)
* fix warnings * Trigger GCC leg when src/tests is modified * Add src/native in default paths Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
1 parent ad5a46a commit 565f3ee

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

eng/pipelines/common/evaluate-default-paths.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
- src/libraries/System.Private.CoreLib/*
1212
- src/libraries/Native/Unix/System.Globalization.Native/*
1313
- src/libraries/Native/Unix/Common/*
14+
- src/native/*
1415
exclude:
1516
- eng/Version.Details.xml
1617
- '*.md'
@@ -31,6 +32,7 @@ jobs:
3132
- src/libraries/Native/Unix/System.Globalization.Native/*
3233
- src/libraries/Native/Unix/Common/*
3334
- src/tests/BuildWasmApps/*
35+
- src/native/*
3436
exclude:
3537
- eng/Version.Details.xml
3638
- '*.md'

eng/pipelines/runtime.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
condition: >-
110110
or(
111111
eq(dependencies.evaluate_paths.outputs['SetPathVars_coreclr.containsChange'], true),
112+
eq(dependencies.evaluate_paths.outputs['SetPathVars_runtimetests.containsChange'], true),
112113
eq(variables['isFullMatrix'], true))
113114
114115
#

src/tests/profiler/native/eltprofiler/slowpatheltprofiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ using std::atomic;
1919

2020
shared_ptr<SlowPathELTProfiler> SlowPathELTProfiler::s_profiler;
2121

22+
#define PROFILER_STUB static void STDMETHODCALLTYPE
23+
2224
#ifndef WIN32
2325
#define UINT_PTR_FORMAT "lx"
24-
#define PROFILER_STUB __attribute__((visibility("hidden"))) static void STDMETHODCALLTYPE
2526
#else // WIN32
2627
#define UINT_PTR_FORMAT "llx"
27-
#define PROFILER_STUB static void STDMETHODCALLTYPE
2828
#endif // WIN32
2929

3030
PROFILER_STUB EnterStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)

src/tests/profiler/native/inlining/inlining.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ using std::atomic;
1313

1414
shared_ptr<InliningProfiler> InliningProfiler::s_profiler;
1515

16+
#define PROFILER_STUB static void STDMETHODCALLTYPE
17+
1618
#ifndef WIN32
1719
#define UINT_PTR_FORMAT "lx"
18-
#define PROFILER_STUB __attribute__((visibility("hidden"))) static void STDMETHODCALLTYPE
1920
#else // WIN32
2021
#define UINT_PTR_FORMAT "llx"
21-
#define PROFILER_STUB static void STDMETHODCALLTYPE
2222
#endif // WIN32
2323

2424
PROFILER_STUB EnterStub(FunctionIDOrClientID functionId, COR_PRF_ELT_INFO eltInfo)

0 commit comments

Comments
 (0)