Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a nested-externs warning in mono #104817

Merged
merged 4 commits into from
Aug 10, 2024
Merged

Fix a nested-externs warning in mono #104817

merged 4 commits into from
Aug 10, 2024

Conversation

am11
Copy link
Member

@am11 am11 commented Jul 12, 2024

   In file included from /runtime/src/native/eventpipe/ep-rt.h:741,
                   from /runtime/src/native/eventpipe/ep-stack-contents.h:7,
                   from /runtime/src/native/eventpipe/ep.h:8,
                   from /runtime/src/native/eventpipe/ep.c:7,
                   from /runtime/artifacts/obj/mono/illumos.x64.Release/mono/mini/CMakeFiles/eventpipe-mono-objects.dir/Unity/unity_0_c.c:3:
  /runtime/src/mono/mono/mini/../../mono/eventpipe/ep-rt-mono.h: In function 'ep_rt_mono_is_runtime_initialized':
  /runtime/src/mono/mono/mini/../../mono/eventpipe/ep-rt-mono.h:1996:18: warning: nested extern declaration of '_ep_rt_mono_runtime_initialized' [-Wnested-externs]
    extern gboolean _ep_rt_mono_runtime_initialized;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

....
  In file included from /runtime/src/native/containers/dn-fwd-list.c:26:
  /runtime/src/native/containers/dn-fwd-list.h: In function 'dn_fwd_list_before_begin':
  /runtime/src/native/containers/dn-fwd-list.h:183:28: warning: nested extern declaration of '_fwd_list_before_begin_it_node' [-Wnested-externs]
    extern dn_fwd_list_node_t _fwd_list_before_begin_it_node;
                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

am11 added 2 commits July 12, 2024 21:05
```sh
   In file included from /runtime/src/native/eventpipe/ep-rt.h:741,
                   from /runtime/src/native/eventpipe/ep-stack-contents.h:7,
                   from /runtime/src/native/eventpipe/ep.h:8,
                   from /runtime/src/native/eventpipe/ep.c:7,
                   from /runtime/artifacts/obj/mono/illumos.x64.Release/mono/mini/CMakeFiles/eventpipe-mono-objects.dir/Unity/unity_0_c.c:3:
  /runtime/src/mono/mono/mini/../../mono/eventpipe/ep-rt-mono.h: In function 'ep_rt_mono_is_runtime_initialized':
  /runtime/src/mono/mono/mini/../../mono/eventpipe/ep-rt-mono.h:1996:18: warning: nested extern declaration of '_ep_rt_mono_runtime_initialized' [-Wnested-externs]
    extern gboolean _ep_rt_mono_runtime_initialized;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 12, 2024
@lambdageek lambdageek self-assigned this Jul 12, 2024
@lambdageek
Copy link
Member

/cc @mdh1418

@tommcdon
Copy link
Member

tommcdon commented Aug 6, 2024

@dotnet-bot retest this please

@tommcdon
Copy link
Member

tommcdon commented Aug 6, 2024

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@am11
Copy link
Member Author

am11 commented Aug 6, 2024

@tommcdon, fyi, when i merged main in PR branch, it was already running the build and was half way through. Now it's reset.

@thaystg
Copy link
Member

thaystg commented Aug 7, 2024

@lewing can you confirm that the wasm tests are flaky and not side effect of this PR?

@thaystg
Copy link
Member

thaystg commented Aug 7, 2024

@pavelsavara can you please confirm that the wasm tests are flaky and not side effect of this PR?

@lewing
Copy link
Member

lewing commented Aug 7, 2024

if the build analysis step is green (it is) that is sufficient confirmation

@pavelsavara
Copy link
Member

Yes, they are flaky.

@am11
Copy link
Member Author

am11 commented Aug 9, 2024

Feel free to merge this, I don't have the merge rights. :)
(want to free up my main branch for other stuff)

@tommcdon tommcdon merged commit 649abc6 into dotnet:main Aug 10, 2024
157 of 160 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Tracing-mono community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants