Skip to content

excess element in struct initializer since recent ucd bitset change #90

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

Closed
saurik opened this issue Mar 2, 2022 · 1 comment
Closed

Comments

@saurik
Copy link

saurik commented Mar 2, 2022

In #81 a field was removed from ucd_record, but in pcre2_ucd.c that means one of the 0's needs to be removed from the initializer.

e21345d#diff-e3bd3003bdb0db9e9e2062bcfeb21b98399376a7d3b3a88460a0266e2df0df9aL1826-R1826

https://github.com/PhilipHazel/pcre2/blob/dea56d2df94546c23021a42d9395f2333589f01e/src/pcre2_ucd.c#L71

pcre2/src/pcre2_ucd.c:71:56: error: excess elements in struct initializer [-Werror,-Wexcess-initializers]
const ucd_record PRIV(ucd_records)[] = {{0,0,0,0,0,0,0,0 }};
                                                       ^
@PhilipHazel
Copy link
Collaborator

Thanks. This oversight would probably have been picked up when the full set of tests is run before a release, but it is as well to get it sorted early. I've committed the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants