Compiler warnings on Mac
There seems to have appeared warnings where there no-one done changes, after my update to the latest master.
====> src/wp43s/%.o: src/wp43s/ui/tam.o <====
clang -DOSX -I/usr/local/include/ -O2 -Wextra -Wall -std=c11 -DPC_BUILD -DOS64BIT -MMD -fshort-enums -m64 `pkg-config --cflags freetype2` `pkg-config --cflags gtk+-3.0` -IdecNumberICU -Isrc/wp43s -Isrc/testSuite -c -o src/wp43s/ui/tam.o src/wp43s/ui/tam.c
src/wp43s/browsers/flagBrowser.c:129:104: warning: format specifies type
'unsigned short' but the argument has type 'uint8_t' (aka 'unsigned char')
[-Wformat]
...sprintf(tmpString + CHARS_PER_LINE * ++line, "%" PRIu16 " local registers are allocated.", currentNumberOfLocalRegisters);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wp43s/defines.h:709:46: note: expanded from macro
'currentNumberOfLocalRegisters'
...(currentSubroutineLevelData[1].numberOfLocalRegisters)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
-e
and
====> src/wp43s/%.o: src/wp43s/gui.o <====
clang -DOSX -I/usr/local/include/ -O2 -Wextra -Wall -std=c11 -DPC_BUILD -DOS64BIT -MMD -fshort-enums -m64 `pkg-config --cflags freetype2` `pkg-config --cflags gtk+-3.0` -IdecNumberICU -Isrc/wp43s -Isrc/testSuite -c -o src/wp43s/gui.o src/wp43s/gui.c
src/wp43s/debug.c:1071:69: warning: format specifies type 'unsigned short' but
the argument has type 'uint8_t' (aka 'unsigned char') [-Wformat]
...sprintf(string, "Content of the %" PRIu16 " local registers", currentNumberOfLocalRegisters);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/wp43s/defines.h:709:46: note: expanded from macro
'currentNumberOfLocalRegisters'
...(currentSubroutineLevelData[1].numberOfLocalRegisters)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
-e