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

New GCC 11.0.1 (Fedora 34) build warnings #1084

Closed
XVilka opened this issue Apr 28, 2021 · 7 comments
Closed

New GCC 11.0.1 (Fedora 34) build warnings #1084

XVilka opened this issue Apr 28, 2021 · 7 comments
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@XVilka
Copy link
Member

XVilka commented Apr 28, 2021

Work environment

Questions Answers
OS/arch/bits (mandatory) Fedora 34 x86_64
File format of the file you reverse (mandatory) -
Architecture/bits of the file (mandatory) -
rizin -v full output, not truncated (mandatory) dd7e30d

Expected behavior

No warnings

Actual behavior

../subprojects/sdb/src/util.c: In function "sdb_itoa":
cc1: warning: function may return address of local variable [-Wreturn-local-addr]
../subprojects/sdb/src/util.c:106:14: note: declared here
  106 |         char tmpbuf[64], *os = NULL;
      |              ^~~~~~
../librz/util/print.c: In function "rz_print_hex_from_bin":
../librz/util/print.c:2101:19: warning: "buf[2305843009213693951]" may be used uninitialized [-Wmaybe-uninitialized]
 2101 |         while (buf[index] == 0 && index > 0) {
      |                ~~~^~~~~~~
In file included from ../shlr/tcc/tccgen.c:24:
../shlr/tcc/tccgen.c: In function "decl0.constprop.isra":
../shlr/tcc/tcc.h:290:47: warning: array subscript "AttributeDef[0]" is partly outside array bounds of "int[1]" [-Warray-bounds]
  290 | #define FUNC_CALL(r)   (((AttributeDef *)&(r))->func_call)
      |                        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../shlr/tcc/tccgen.c:3148:74: note: in expansion of macro "FUNC_CALL"
 3148 |                                                 FUNC_CALL(type.ref->r) = FUNC_CALL(r);
      |                                                                          ^~~~~~~~~
../shlr/tcc/tccgen.c:3041:26: note: while referencing "r"
 3041 |         int v, has_init, r;
      |                          ^
      |../librz/asm/arch/arc/gnu/arcompact-dis.c: In function "dsmOneArcInst":
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2413:11: note: in expansion of macro "CHECK_FIELD_C"
 2413 |           CHECK_FIELD_C();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2413:11: note: in expansion of macro "CHECK_FIELD_C"
 2413 |           CHECK_FIELD_C();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2417:13: note: in expansion of macro "CHECK_FIELD_B"
 2417 |             CHECK_FIELD_B();
      |             ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2417:13: note: in expansion of macro "CHECK_FIELD_B"
 2417 |             CHECK_FIELD_B();
      |             ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2437:11: note: in expansion of macro "CHECK_FIELD_B"
 2437 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2437:11: note: in expansion of macro "CHECK_FIELD_B"
 2437 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2456:11: note: in expansion of macro "CHECK_FIELD_B"
 2456 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2456:11: note: in expansion of macro "CHECK_FIELD_B"
 2456 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2476:11: note: in expansion of macro "CHECK_FIELD_B"
 2476 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2476:11: note: in expansion of macro "CHECK_FIELD_B"
 2476 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2499:15: note: in expansion of macro "CHECK_FIELD_C"
 2499 |               CHECK_FIELD_C();
      |               ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2499:15: note: in expansion of macro "CHECK_FIELD_C"
 2499 |               CHECK_FIELD_C();
      |               ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2519:7: note: in expansion of macro "CHECK_FIELD_C"
 2519 |       CHECK_FIELD_C();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2519:7: note: in expansion of macro "CHECK_FIELD_C"
 2519 |       CHECK_FIELD_C();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2549:9: note: in expansion of macro "CHECK_FIELD_C"
 2549 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2549:9: note: in expansion of macro "CHECK_FIELD_C"
 2549 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2559:11: note: in expansion of macro "CHECK_FIELD_B"
 2559 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2559:11: note: in expansion of macro "CHECK_FIELD_B"
 2559 |           CHECK_FIELD_B();
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2566:9: note: in expansion of macro "CHECK_FIELD_B"
 2566 |         CHECK_FIELD_B();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2566:9: note: in expansion of macro "CHECK_FIELD_B"
 2566 |         CHECK_FIELD_B();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2612:9: note: in expansion of macro "CHECK_FIELD_C"
 2612 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2612:9: note: in expansion of macro "CHECK_FIELD_C"
 2612 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2642:9: note: in expansion of macro "CHECK_FIELD_C"
 2642 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2642:9: note: in expansion of macro "CHECK_FIELD_C"
 2642 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2696:7: note: in expansion of macro "CHECK_FIELD_B"
 2696 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2696:7: note: in expansion of macro "CHECK_FIELD_B"
 2696 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2714:9: note: in expansion of macro "CHECK_FIELD_C"
 2714 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2714:9: note: in expansion of macro "CHECK_FIELD_C"
 2714 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2769:7: note: in expansion of macro "CHECK_FIELD_B"
 2769 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2769:7: note: in expansion of macro "CHECK_FIELD_B"
 2769 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2827:7: note: in expansion of macro "CHECK_FIELD_B"
 2827 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2827:7: note: in expansion of macro "CHECK_FIELD_B"
 2827 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2828:7: note: in expansion of macro "CHECK_FIELD_C"
 2828 |       CHECK_FIELD_C();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2828:7: note: in expansion of macro "CHECK_FIELD_C"
 2828 |       CHECK_FIELD_C();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2871:7: note: in expansion of macro "CHECK_FIELD_B"
 2871 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2871:7: note: in expansion of macro "CHECK_FIELD_B"
 2871 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2884:13: note: in expansion of macro "CHECK_FIELD_C"
 2884 |             CHECK_FIELD_C();
      |             ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2884:13: note: in expansion of macro "CHECK_FIELD_C"
 2884 |             CHECK_FIELD_C();
      |             ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2909:7: note: in expansion of macro "CHECK_FIELD_C"
 2909 |       CHECK_FIELD_C();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2909:7: note: in expansion of macro "CHECK_FIELD_C"
 2909 |       CHECK_FIELD_C();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2917:9: note: in expansion of macro "CHECK_FIELD_B"
 2917 |         CHECK_FIELD_B();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2917:9: note: in expansion of macro "CHECK_FIELD_B"
 2917 |         CHECK_FIELD_B();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2937:7: note: in expansion of macro "CHECK_FIELD_B"
 2937 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2937:7: note: in expansion of macro "CHECK_FIELD_B"
 2937 |       CHECK_FIELD_B();
      |       ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2941:11: note: in expansion of macro "CHECK_FIELD_C"
 2941 |           CHECK_FIELD_C(); break;
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2941:11: note: in expansion of macro "CHECK_FIELD_C"
 2941 |           CHECK_FIELD_C(); break;
      |           ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2993:9: note: in expansion of macro "CHECK_FIELD_C"
 2993 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:2993:9: note: in expansion of macro "CHECK_FIELD_C"
 2993 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:209:9: note: in expansion of macro "CHECK_FIELD"
  209 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3154:7: note: in expansion of macro "CHECK_FIELD_H_AC"
 3154 |       CHECK_FIELD_H_AC();
      |       ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:209:9: note: in expansion of macro "CHECK_FIELD"
  209 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3154:7: note: in expansion of macro "CHECK_FIELD_H_AC"
 3154 |       CHECK_FIELD_H_AC();
      |       ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:209:9: note: in expansion of macro "CHECK_FIELD"
  209 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3171:9: note: in expansion of macro "CHECK_FIELD_H_AC"
 3171 |         CHECK_FIELD_H_AC();
      |         ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:209:9: note: in expansion of macro "CHECK_FIELD"
  209 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3171:9: note: in expansion of macro "CHECK_FIELD_H_AC"
 3171 |         CHECK_FIELD_H_AC();
      |         ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3496:9: note: in expansion of macro "CHECK_FIELD_C"
 3496 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3496:9: note: in expansion of macro "CHECK_FIELD_C"
 3496 |         CHECK_FIELD_C();
      |         ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3538:5: note: in expansion of macro "CHECK_FIELD_C"
 3538 |     CHECK_FIELD_C();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3538:5: note: in expansion of macro "CHECK_FIELD_C"
 3538 |     CHECK_FIELD_C();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3611:5: note: in expansion of macro "CHECK_FIELD_B"
 3611 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3611:5: note: in expansion of macro "CHECK_FIELD_B"
 3611 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3644:5: note: in expansion of macro "CHECK_FIELD_B"
 3644 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3644:5: note: in expansion of macro "CHECK_FIELD_B"
 3644 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3661:5: note: in expansion of macro "CHECK_FIELD_B"
 3661 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3661:5: note: in expansion of macro "CHECK_FIELD_B"
 3661 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3662:5: note: in expansion of macro "CHECK_FIELD_C"
 3662 |     CHECK_FIELD_C();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3662:5: note: in expansion of macro "CHECK_FIELD_C"
 3662 |     CHECK_FIELD_C();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3674:5: note: in expansion of macro "CHECK_FIELD_B"
 3674 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:190:9: note: in expansion of macro "CHECK_FIELD"
  190 |         CHECK_FIELD(fieldB);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3674:5: note: in expansion of macro "CHECK_FIELD_B"
 3674 |     CHECK_FIELD_B();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:102:9: warning: this "if" clause does not guard... [-Wmisleading-indentation]
  102 |         if (is_limm==1 && !NEXT_WORD(1))        \
      |         ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3687:5: note: in expansion of macro "CHECK_FIELD_C"
 3687 |     CHECK_FIELD_C();
      |     ^~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:104:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the "if"
  104 |           if (info->endian == BFD_ENDIAN_LITTLE) { \
      |           ^~
../librz/asm/arch/arc/gnu/arcompact-dis.c:151:11: note: in expansion of macro "PUT_NEXT_WORD_IN"
  151 |           PUT_NEXT_WORD_IN(field);              \
      |           ^~~~~~~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:195:9: note: in expansion of macro "CHECK_FIELD"
  195 |         CHECK_FIELD(fieldC);                    \
      |         ^~~~~~~~~~~
../librz/asm/arch/arc/gnu/arcompact-dis.c:3687:5: note: in expansion of macro "CHECK_FIELD_C"
 3687 |     CHECK_FIELD_C();
      |     ^~~~~~~~~~~~~
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cc @wargio

@XVilka XVilka added the good first issue Good for newcomers label Apr 28, 2021
@XVilka XVilka added this to the 0.3.0 milestone Apr 28, 2021
@wargio
Copy link
Member

wargio commented Apr 28, 2021

i have removed the SHA2 ones, since i patched them in the PR related to hashes

@XVilka
Copy link
Member Author

XVilka commented May 14, 2021

The biggest offender here is the librz/asm/arch/arc/gnu/arcompact-dis.c which will be solved by #814 automatically.

@XVilka
Copy link
Member Author

XVilka commented Aug 2, 2021

Not Fedora, but NetBSD with Clang 10:

../librz/search/keyword.c:213:36: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (str[i - 1] == '\\' && isalpha(str[i])) {
                                                 ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
1 warning generated.
../shlr/gdb/src/utils.c:176:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isxdigit(*src)) {
                     ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
../shlr/gdb/src/utils.c:184:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isxdigit(*ptr1)) {
                     ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
../shlr/gdb/src/utils.c:195:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(*src)) {
             ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
3 warnings generated.

@ret2libc
Copy link
Member

@XVilka i can't see any warning on a fedora34 container. Are you using any particular option?

@wargio
Copy link
Member

wargio commented Aug 17, 2021

@XVilka i can't see any warning on a fedora34 container. Are you using any particular option?

Try a asan build

@wargio
Copy link
Member

wargio commented Aug 17, 2021

Btw, i have fixed the gnu-arc warnings here 4e3bbf1

@ret2libc
Copy link
Member

I think this can be closed then! I see some -Warray-bounds warnings:

../../app/librz/core/task.c: In function ‘rz_core_function_task_new’:
../../app/librz/core/task.c:623:17: warning: array subscript ‘CmdTaskCtx {aka struct cmd_task_ctx_t}[0]’ is partly outside array bounds of ‘unsigned char[40]’ [-Warray-bounds]
  623 |         free(ctx->cmd);
      |              ~~~^~~~~
In file included from ../../app/librz/include/rz_main.h:7,
                 from ../../app/librz/include/rz_core.h:7,
                 from ../../app/librz/core/task.c:5:
../../app/librz/include/rz_types.h:291:31: note: referencing an object of size 40 allocated by ‘malloc’
  291 | #define RZ_NEW(x)        (x *)malloc(sizeof(x))
      |                               ^~~~~~~~~~~~~~~~~
../../app/librz/core/task.c:670:32: note: in expansion of macro ‘RZ_NEW’
  670 |         FunctionTaskCtx *ctx = RZ_NEW(FunctionTaskCtx);
      |                                ^~~~~~
../../app/librz/core/task.c:624:17: warning: array subscript ‘CmdTaskCtx {aka struct cmd_task_ctx_t}[0]’ is partly outside array bounds of ‘unsigned char[40]’ [-Warray-bounds]
  624 |         free(ctx->res);
      |              ~~~^~~~~
In file included from ../../app/librz/include/rz_main.h:7,
                 from ../../app/librz/include/rz_core.h:7,
                 from ../../app/librz/core/task.c:5:
../../app/librz/include/rz_types.h:291:31: note: referencing an object of size 40 allocated by ‘malloc’
  291 | #define RZ_NEW(x)        (x *)malloc(sizeof(x))
      |                               ^~~~~~~~~~~~~~~~~
../../app/librz/core/task.c:670:32: note: in expansion of macro ‘RZ_NEW’
  670 |         FunctionTaskCtx *ctx = RZ_NEW(FunctionTaskCtx);
      |                                ^~~~~~

But I believe they are false positives and looking online it seems it's quite frequent problem...

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

No branches or pull requests

3 participants