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 "anonymous types declared in an anonymous union" warnings #44807

Merged
merged 1 commit into from
Apr 10, 2022

Commits on Apr 7, 2022

  1. Fix "anonymous types declared in an anonymous union" warnings

    They look like this:
    ```
        CC src/processor.o
    In file included from /Users/mhorn/Projekte/Julia/julia.master/src/processor.cpp:10:
    In file included from ./processor.h:5:
    ./julia.h:395:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
            struct {
            ^
    ./julia.h:405:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
            struct {
            ^
    2 warnings generated.
    ```
    and come from code that was introduced by @Keno in PR JuliaLang#43852.
    
    But it turns out that the union is not used at all! So I'm simply removing
    the offending union. Perhaps it is needed for some future work, but it should
    be trivial to add it back if needed. If that happens, I suggest a comment
    is added that explain why this looks similar to but has different layout
    compared to the `typedef _jl_purity_overrides_t` also in `julia.h`.
    fingolfin committed Apr 7, 2022
    Configuration menu
    Copy the full SHA
    098bce0 View commit details
    Browse the repository at this point in the history