Re: [hatari-devel] Warnings

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 02/10/2020 à 22:52, Vincent Rivière a écrit :
On 02/10/2020 à 08:33, Thomas Huth wrote:
(I'm still aware of some compiler warnings that appear when compiling
with MinGW on MSYS2, but they are completely harmless and can be ignored
for now)

See warnings when building on Cygwin as attachment.

BTW: Building the CPU part takes ages!

Did I say as attachment?

--
Vincent Rivière
In file included from /home/vincent/compil/hatari-HG-latest/src/cpu/compat.h:15,
                 from /home/vincent/compil/hatari-HG-latest/src/cpu/sysdeps.h:23,
                 from /home/vincent/compil/hatari-HG-latest/src/cpu/build68k.c:10:
/home/vincent/compil/hatari-HG-latest/src/cpu/build68k.c: In function ‘main’:
/home/vincent/compil/hatari-HG-latest/src/cpu/build68k.c:314:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  314 |   while (isspace(*opstrp))
      |                  ^~~~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/build68k.c:319:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  319 |    if (!isspace (*osendp))
      |                  ^~~~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/build68k.c:331:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  331 |   while (!isspace(*p++));
      |                   ^~~~
In file included from /home/vincent/compil/hatari-HG-latest/src/cpu/compat.h:15,
                 from /home/vincent/compil/hatari-HG-latest/src/cpu/sysdeps.h:23,
                 from /home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:10:
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c: In function ‘build_insn’:
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:324:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  324 |   while (opcstr[pos] && !_istspace(opcstr[pos])) {
      |                                    ~~~~~~^~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:324:26: note: in expansion of macro ‘_istspace’
  324 |   while (opcstr[pos] && !_istspace(opcstr[pos])) {
      |                          ^~~~~~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:360:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  360 |   while (opcstr[pos] && _istspace(opcstr[pos]))
      |                                   ~~~~~~^~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:360:25: note: in expansion of macro ‘_istspace’
  360 |   while (opcstr[pos] && _istspace(opcstr[pos]))
      |                         ^~~~~~~~~
In file included from /home/vincent/compil/hatari-HG-latest/src/cpu/compat.h:15,
                 from /home/vincent/compil/hatari-HG-latest/src/cpu/sysdeps.h:23,
                 from /home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:10:
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c: In function ‘build_insn’:
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:324:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  324 |   while (opcstr[pos] && !_istspace(opcstr[pos])) {
      |                                    ~~~~~~^~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:324:26: note: in expansion of macro ‘_istspace’
  324 |   while (opcstr[pos] && !_istspace(opcstr[pos])) {
      |                          ^~~~~~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:360:41: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  360 |   while (opcstr[pos] && _istspace(opcstr[pos]))
      |                                   ~~~~~~^~~~~
/home/vincent/compil/hatari-HG-latest/src/cpu/readcpu.c:360:25: note: in expansion of macro ‘_istspace’
  360 |   while (opcstr[pos] && _istspace(opcstr[pos]))
      |                         ^~~~~~~~~
In file included from /home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c:13:
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c: In function ‘DebugCpu_MemDump’:
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c:468:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  468 |  if (!mode || isdigit(psArgs[arg][0]) || psArgs[arg][1])
      |                       ~~~~~~~~~~~^~~
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c: In function ‘DebugCpu_MemWrite’:
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c:592:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  592 |  if (!mode || isdigit(psArgs[arg][0]) || psArgs[arg][1])
      |                       ~~~~~~~~~~~^~~
In file included from /home/vincent/compil/hatari-HG-latest/src/debug/symbols.c:22:
/home/vincent/compil/hatari-HG-latest/src/debug/symbols.c: In function ‘symbols_load_ascii’:
/home/vincent/compil/hatari-HG-latest/src/debug/symbols.c:861:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  861 |   if (!isxdigit(*buf)) {
      |                 ^~~~
In file included from /home/vincent/compil/hatari-HG-latest/src/options.c:16:
/home/vincent/compil/hatari-HG-latest/src/options.c: In function ‘Opt_ParseParameters’:
/home/vincent/compil/hatari-HG-latest/src/options.c:1669:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1669 |    if (strlen(str) > 2 && isdigit(str[0]) && str[1] == '=')
      |                                   ~~~^~~
/home/vincent/compil/hatari-HG-latest/src/options.c:1692:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1692 |    if (strlen(str) > 2 && isdigit(str[0]) && str[1] == '=')
      |                                   ~~~^~~
/home/vincent/compil/hatari-HG-latest/src/options.c:1737:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1737 |    if (strlen(str) > 2 && isdigit(str[0]) && str[1] == '=')
      |                                   ~~~^~~
In file included from /home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c:13:
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c: In function ‘DebugCpu_MemDump’:
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c:468:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  468 |  if (!mode || isdigit(psArgs[arg][0]) || psArgs[arg][1])
      |                       ~~~~~~~~~~~^~~
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c: In function ‘DebugCpu_MemWrite’:
/home/vincent/compil/hatari-HG-latest/src/debug/debugcpu.c:592:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  592 |  if (!mode || isdigit(psArgs[arg][0]) || psArgs[arg][1])
      |                       ~~~~~~~~~~~^~~
In file included from /home/vincent/compil/hatari-HG-latest/src/debug/symbols.c:22:
/home/vincent/compil/hatari-HG-latest/src/debug/symbols.c: In function ‘symbols_load_ascii’:
/home/vincent/compil/hatari-HG-latest/src/debug/symbols.c:861:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
  861 |   if (!isxdigit(*buf)) {
      |                 ^~~~


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/