Skip to content

Fixed anonymous type in anonymous union error in m68k.h #1597

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

Merged
merged 1 commit into from
Mar 19, 2020

Conversation

netromdk
Copy link
Contributor

@netromdk netromdk commented Mar 7, 2020

Apple Clang 11.0.0 error:

capstone/include/capstone/m68k.h:160:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
                struct {                    ///< register pair in one operand
                ^

@netromdk netromdk changed the title Fixed anon type in anon union error in m68k.h Fixed anonymous type in anonymous union error in m68k.h Mar 7, 2020
@aquynh
Copy link
Collaborator

aquynh commented Mar 7, 2020

@emoon please ack

@netromdk
Copy link
Contributor Author

Any update on this? Thanks :)

@emoon
Copy link
Contributor

emoon commented Mar 18, 2020

Sorry the notification must have been eaten by some spam filter :( it looks good!

@@ -150,17 +150,20 @@ typedef struct m68k_op_br_disp {
uint8_t disp_size; ///< Size from m68k_op_br_disp_size type above
} m68k_op_br_disp;

/// Register pair in one operand.
typedef struct cs_m68k_op_reg_pair {
m68k_reg reg_0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use tabs for indentation, not spaces.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've converted into tabs now.

Apple Clang 11.0.0 error:
```
capstone/include/capstone/m68k.h:160:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
                struct {                    ///< register pair in one operand
                ^
```
@netromdk netromdk force-pushed the fix_anon_type_in_anon_union branch from 9bc8f9a to 7026cee Compare March 18, 2020 20:35
@aquynh aquynh merged commit 8436dbc into capstone-engine:master Mar 19, 2020
@aquynh
Copy link
Collaborator

aquynh commented Mar 19, 2020

merged, thanks!

aquynh pushed a commit that referenced this pull request Mar 19, 2020
Apple Clang 11.0.0 error:
```
capstone/include/capstone/m68k.h:160:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
                struct {                    ///< register pair in one operand
                ^
```
aquynh pushed a commit that referenced this pull request Mar 19, 2020
Apple Clang 11.0.0 error:
```
capstone/include/capstone/m68k.h:160:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types]
                struct {                    ///< register pair in one operand
                ^
```
@riptl riptl mentioned this pull request Jul 22, 2022
6 tasks
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.

3 participants