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

Give a name to unnamed union in CborEncoder #35

Closed
wants to merge 1 commit into from
Closed

Give a name to unnamed union in CborEncoder #35

wants to merge 1 commit into from

Conversation

ffontaine
Copy link
Contributor

cbor.h contains an unnamed union in CborEncoder structure, this functionality is
not always supported by all compilers, especially it seems that the Blackfin
build on buildroot fails (with gcc 4.3). This patch names this union "data".

Signed-off-by: Fabrice Fontaine fabrice.fontaine@orange.com

cbor.h contains an unnamed union in CborEncoder structure, this functionality is
not always supported by all compilers, especially it seems that the Blackfin
build on buildroot fails (with gcc 4.3). This patch names this union "data".

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
@thiagomacieira
Copy link
Member

Interesting, I thought anonymous unions were a C99 feature, but they're actually C11.

@thiagomacieira
Copy link
Member

Merged as 0e1440a

@thiagomacieira
Copy link
Member

Reverting this in the master branch. I'm re-applying to the dev branch.

@thiagomacieira
Copy link
Member

Re-applied with fixes to dev branch, as ede7f14.

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

Successfully merging this pull request may close these issues.

None yet

2 participants