Skip to content

Clang: "anonymous structs are a GNU extension" #14130

@DesWurstes

Description

@DesWurstes

bitcoin/src/prevector.h

Lines 152 to 158 in 68f3c7e

union direct_or_indirect {
char direct[sizeof(T) * N];
struct {
size_type capacity;
char* indirect;
};
} _union;

I'm opening an issue as its fix is too tiny to become a pull request.

Can be solved by renaming the struct to

     struct indirect_contents { 
         size_type capacity; 
         char* indirect; 
     }; 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions