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

NetBSD build warnings #1873

Open
Tracked by #3072
XVilka opened this issue Oct 22, 2021 · 0 comments
Open
Tracked by #3072

NetBSD build warnings #1873

XVilka opened this issue Oct 22, 2021 · 0 comments
Labels
BSD good first issue Good for newcomers

Comments

@XVilka
Copy link
Member

XVilka commented Oct 22, 2021

../librz/debug/p/debug_native.c:1499:2: warning: list filedescriptors not supported for this platform [-W#warnings]
#warning list filedescriptors not supported for this platform
 ^
1 warning generated.
../librz/core/cbin.c:392:30: warning: array subscript is of type 'char' [-Wchar-subscripts]
                rz_cons_printf("[%c%s]\n", toupper(header[0]), header + 1);
                                           ^~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
1 warning generated.
../librz/core/disasm.c:4305:6: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (isdigit(*reg)) {
            ^~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/core/disasm.c:4324:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isdigit(*name)) {
                     ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
2 warnings generated.
../librz/core/tui/visual.c:3520:18: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                        pm[i + 1] = toupper(pm[i + 1]);
                                                    ^~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:60:46: note: expanded from macro 'toupper'
#define toupper(c)      ((int)((_toupper_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/core/tui/visual.c:3522:18: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                        pm[i + 1] = tolower(pm[i + 1]);
                                                    ^~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
2 warnings generated.
../librz/analysis/p/analysis_riscv.c:671:14: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (isdigit(args.arg[dst_idx][0])) {
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/analysis/p/analysis_riscv.c:692:15: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        } else if (isalpha(args.arg[src_idx][0])) {
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
2 warnings generated.
In file included from ../librz/core/cmd/cmd.c:90:
../librz/core/cmd/cmd_analysis.c:6053:14: warning: array subscript is of type 'char' [-Wchar-subscripts]
                } else if (isdigit(input[1])) {
                           ^~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
In file included from ../librz/core/cmd/cmd.c:90:
../librz/core/cmd/cmd_analysis.c:7866:17: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!cstr || !isdigit(cstr[0])) {
                              ^~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/core/cmd/cmd.c:3769:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isspace(*s)) {
                    ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
3 warnings generated.
../librz/analysis/var.c:343:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
        return !isdigit(*name) && strcspn(name, "., =/");
                ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
1 warning generated.
../librz/asm/p/asm_x86_nz.c:4672:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isdigit(token[2]) && !isdigit(token[3])) {
                    ^~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/asm/p/asm_x86_nz.c:4672:29: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isdigit(token[2]) && !isdigit(token[3])) {
                                          ^~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/asm/p/asm_x86_nz.c:4693:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isdigit(token[2]) && !isdigit(token[3])) {
                    ^~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/asm/p/asm_x86_nz.c:4693:29: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isdigit(token[2]) && !isdigit(token[3])) {
                                          ^~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
4 warnings generated.
../librz/asm/arch/8051/8051_ass.c:256:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isspace(*a)) {
                    ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
../librz/asm/arch/8051/8051_ass.c:260:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isspace(*b)) {
                    ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
../librz/asm/arch/8051/8051_ass.c:264:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (tolower(*a) == tolower(*b)) {
                    ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/asm/arch/8051/8051_ass.c:264:22: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (tolower(*a) == tolower(*b)) {
                                   ^~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/asm/arch/8051/8051_ass.c:294:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                while (isspace(str[si]) && !isspace(pattern[ti])) {
                       ^~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
../librz/asm/arch/8051/8051_ass.c:294:31: warning: array subscript is of type 'char' [-Wchar-subscripts]
                while (isspace(str[si]) && !isspace(pattern[ti])) {
                                            ^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
../librz/asm/arch/8051/8051_ass.c:297:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (isspace(pattern[ti])) {
                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
../librz/asm/arch/8051/8051_ass.c:301:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (tolower(pattern[ti]) == tolower(str[si])) {
                    ^~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/asm/arch/8051/8051_ass.c:301:31: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (tolower(pattern[ti]) == tolower(str[si])) {
                                            ^~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/asm/arch/8051/8051_ass.c:339:43: warning: array subscript is of type 'char' [-Wchar-subscripts]
                return rz_str_ansi_nlen(str, 4) == 3 && tolower(str[1]) == 'r' && (str[2] == '0' || str[2] == '1');
                                                        ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/asm/arch/8051/8051_ass.c:343:43: warning: array subscript is of type 'char' [-Wchar-subscripts]
                return rz_str_ansi_nlen(str, 5) == 4 && tolower(str[1]) == 'r' && (str[2] == '0' || str[2] == '1') && str[3] == ']';
                                                        ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../librz/asm/arch/8051/8051_ass.c:353:16: warning: array subscript is of type 'char' [-Wchar-subscripts]
        return str && tolower(str[0]) == 'r' && rz_str_ansi_nlen(str, 3) == 2 && '0' <= str[1] && str[1] <= '7';
                      ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
12 warnings generated.
../librz/asm/arch/arm/armass64.c:1087:20: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!*token || !isdigit(*token)) {
                                        ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/asm/arch/arm/armass64.c:1111:20: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!*token || !isdigit(*token)) {
                                        ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
2 warnings generated.
../librz/bin/pdb/pdb_downloader.c:167:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isxdigit(guid[i])) {
                     ^~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
1 warning generated.
../librz/asm/asm.c:833:12: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                                if (!isspace(*cptr)) {
                                                     ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:56:44: note: expanded from macro 'isspace'
#define isspace(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_S))
                                                ^~~~
1 warning generated.
../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.
../librz/cons/cons.c:397:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                if (isdigit(buf[2])) {
                                    ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../librz/cons/cons.c:400:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                if (isdigit(buf[3])) {
                                    ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
2 warnings 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.
../shlr/gdb/src/gdbclient/responses.c:133:68: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (g->data_len < 2 || g->data[0] != 'F' || g->data[1] == '-' || !isxdigit(g->data[1])) {
                                                                          ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/responses.c:157:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(g->data[1])) {
             ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/responses.c:178:68: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (g->data_len < 2 || g->data[0] != 'F' || g->data[1] == '-' || !isxdigit(g->data[1])) {
                                                                          ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/responses.c:202:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(g->data[1])) {
             ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/responses.c:230:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(g->data[1])) {
             ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/responses.c:298:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!isxdigit(*ptr2)) {
                             ^~~~~~~~~~~~~~~
/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/gdbclient/responses.c:310:10: warning: array subscript is of type 'char' [-Wchar-subscripts]
                                if (!isxdigit(*ptr2)) {
                                     ^~~~~~~~~~~~~~~
/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/gdbclient/responses.c:410:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isxdigit(*ptr)) {
                     ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
8 warnings generated.

[888/1716] Compiling C object shlr/gdb/libr2gdb.a.p/src_gdbserver_core.c.o�[K
[889/1716] Compiling C object shlr/gdb/libr2gdb.a.p/src_gdbclient_core.c.o�[K
../shlr/gdb/src/gdbclient/core.c:1608:48: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (g->data_len == 3 && g->data[0] == 'E' && isxdigit(g->data[1]) && isxdigit(g->data[2])) {
                                                             ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/core.c:1608:72: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (g->data_len == 3 && g->data[0] == 'E' && isxdigit(g->data[1]) && isxdigit(g->data[2])) {
                                                                                     ^~~~~~~~~~~~~~~~~~~~
/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/gdbclient/core.c:1947:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isxdigit(*ptr)) {
                     ^~~~~~~~~~~~~~
/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/gdbclient/core.c:1960:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!isxdigit(*ptr)) {
                             ^~~~~~~~~~~~~~
/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/gdbclient/core.c:1974:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(*ptr)) {
             ^~~~~~~~~~~~~~
/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/gdbclient/core.c:1986:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(*ptr)) {
             ^~~~~~~~~~~~~~
/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/gdbclient/core.c:2000:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isxdigit(*ptr)) {
                     ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
7 warnings generated.

[889/1716] Compiling C object librz/io/librz_io.so.0.4.0-git.p/io.c.o�[K
[890/1716] Compiling C object shlr/gdb/libr2gdb.a.p/src_gdbclient_xml.c.o�[K
../shlr/gdb/src/gdbclient/xml.c:514:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
                c = tolower(flags->fields[i].name[0]) - 'a';
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
../shlr/gdb/src/gdbclient/xml.c:647:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!isdigit(*tmp1)) {
                             ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../shlr/gdb/src/gdbclient/xml.c:656:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!isdigit(*tmp1)) {
                             ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../shlr/gdb/src/gdbclient/xml.c:805:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isdigit(*tmp1)) {
                     ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
../shlr/gdb/src/gdbclient/xml.c:813:9: warning: array subscript is of type 'char' [-Wchar-subscripts]
                        if (!isdigit(*tmp1)) {
                             ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:51:44: note: expanded from macro 'isdigit'
#define isdigit(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_D))
                                                ^~~~
5 warnings generated.

[890/1716] Compiling C object librz/io/librz_io.so.0.4.0-git.p/io_fd.c.o�[K
[891/1716] Compiling C object librz/io/librz_io.so.0.4.0-git.p/io_fd.c.o�[K
[891/1716] Compiling C object librz/io/librz_io.so.0.4.0-git.p/io_map.c.o�[K
[892/1716] Compiling C object shlr/gdb/libr2gdb.a.p/src_gdbserver_core.c.o�[K
../shlr/gdb/src/gdbserver/core.c:295:26: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (g->data_len <= 2 || isalpha(g->data[2])) {
                                ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
../shlr/gdb/src/gdbserver/core.c:320:26: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (g->data_len <= 2 || isalpha(g->data[2])) {
                                ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:49:44: note: expanded from macro 'isalpha'
#define isalpha(c)      ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_A))
                                                ^~~~
../shlr/gdb/src/gdbserver/core.c:424:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(g->data[1])) {
             ^~~~~~~~~~~~~~~~~~~~
/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/gdbserver/core.c:452:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(g->data[1]) || !(ptr = strchr(g->data, '='))) {
             ^~~~~~~~~~~~~~~~~~~~
/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/gdbserver/core.c:456:7: warning: array subscript is of type 'char' [-Wchar-subscripts]
        if (!isxdigit(*ptr)) {
             ^~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:58:45: note: expanded from macro 'isxdigit'
#define isxdigit(c)     ((int)((_ctype_tab_ + 1)[(c)] & _CTYPE_X))
                                                ^~~~
5 warnings generated.
[1100/1716] Compiling C object librz/util/librz_util.so.0.4.0-git.p/unum.c.o�[K
../librz/util/unum.c:243:30: warning: array subscript is of type 'char' [-Wchar-subscripts]
        } else if (str[0] == '0' && tolower(str[1]) == 'x') {
                                    ^~~~~~~~~~~~~~~
/usr/include/sys/ctype_inline.h:59:46: note: expanded from macro 'tolower'
#define tolower(c)      ((int)((_tolower_tab_ + 1)[(c)]))
                                                  ^~~~
1 warning generated.
../librz/util/regex/regcomp.c:489:8: warning: array subscript is of type 'char' [-Wchar-subscripts]
                if (!isalpha(c)) {
                     ^~~~~~~~~~
/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.
@XVilka XVilka added good first issue Good for newcomers BSD labels Oct 22, 2021
@stale stale bot added the stale label Apr 27, 2022
@XVilka XVilka removed the stale label Apr 27, 2022
@rizinorg rizinorg deleted a comment from stale bot Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSD good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant