Skip to content

Fix compilation warnings related to TriCore.#2012

Merged
aquynh merged 2 commits intocapstone-engine:nextfrom
b1llow:next
May 9, 2023
Merged

Fix compilation warnings related to TriCore.#2012
aquynh merged 2 commits intocapstone-engine:nextfrom
b1llow:next

Conversation

@b1llow
Copy link
Copy Markdown
Contributor

@b1llow b1llow commented May 4, 2023

Fixes #2009

@XVilka
Copy link
Copy Markdown
Contributor

XVilka commented May 4, 2023

@trufae could you please test this one?

@XVilka
Copy link
Copy Markdown
Contributor

XVilka commented May 5, 2023

@imbillow if you write Fixes #xxxx it will connect to the issue automatically on the GitHub side.

@trufae
Copy link
Copy Markdown
Contributor

trufae commented May 5, 2023

Looks good, no warnings for me

@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented May 5, 2023

dont you want to include cstool.h for other archs, too??

Comment thread cstool/cstool.h
#ifndef CAPSTONE_CSTOOL_CSTOOL_H_
#define CAPSTONE_CSTOOL_CSTOOL_H_

void print_insn_detail_x86(csh ud, cs_mode mode, cs_insn *ins);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Arent these definitions depending on ifdefs for each selected arch? I think those must be wrapped around ifdefs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But cstool uses cs_support(CS_ARCH_XXX) to query capstone for architectural support, not conditional compilation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi, can this thread be marked as solved?

@XVilka
Copy link
Copy Markdown
Contributor

XVilka commented May 9, 2023

@aquynh @kabeor does it look good now?

@aquynh aquynh merged commit 5e2edea into capstone-engine:next May 9, 2023
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented May 9, 2023

merged, thanks!

@b1llow b1llow deleted the next branch May 9, 2023 13:06
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.

tricore warnings

5 participants