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

Fix compiler warnings gnu/arc*.c syscall.c print.c debug_gdb.c #1227

Merged
merged 5 commits into from
Jun 20, 2021

Conversation

wargio
Copy link
Member

@wargio wargio commented Jun 19, 2021

SQUASH ME

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the documentation and the rizin book with the relevant information (if needed)

Detailed description

Resolves the NULL format warnings and a leak in rz_syscall

@wargio wargio requested a review from yossizap as a code owner June 19, 2021 22:18
@wargio wargio changed the title Fix compiler warnings gnu/arc*.c syscall.c print.c Fix compiler warnings gnu/arc*.c syscall.c print.c debug_gdb.c Jun 19, 2021
@@ -86,8 +86,9 @@ typedef enum
#define PUT_NEXT_WORD_IN(a) \
do \
{ \
if (is_limm == 1 && !NEXT_WORD (1)) \
if (is_limm == 1 && !NEXT_WORD (1)) { \
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, i know.

@@ -99,8 +99,9 @@ static bfd_vma bfd_getm32_ac (unsigned int) ATTRIBUTE_UNUSED;
#define FIELDS9_FLAG(word) (((BITS(((signed int)(word)),0,5) << 6) | (BITS((word),6,11))) )

#define PUT_NEXT_WORD_IN(a) { \
if (is_limm==1 && !NEXT_WORD(1)) \
mwerror(state, "Illegal limm reference in last instruction!\n"); \
if (is_limm==1 && !NEXT_WORD(1)) { \
Copy link
Member

Choose a reason for hiding this comment

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

This one as well.

@wargio wargio enabled auto-merge (squash) June 20, 2021 13:11
@wargio wargio merged commit 4e3bbf1 into dev Jun 20, 2021
@wargio wargio deleted the fix-compiler-warnings branch June 20, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants