Compile warnings Mac
I merged the latest master #1365d80c into the 609 branch, and the compiles all three worked without issue (after I manually had to clean the .o and .d files).
Warnings in all three compiles:
Simulator: Warnings:
====> src/wp43s/programming/manage.c: build/simulator/manage.o <====
clang -std=c11 -DOSX -I/usr/local/include/ -O2 -DPC_BUILD -DOS64BIT -fshort-enums -m64 `pkg-config --cflags freetype2` `pkg-config --cflags gtk+-3.0` -Wextra -Wall -MMD -Idep/decNumberICU -Ibuild/generated -Isrc/wp43s -Isrc/testSuite -c -o build/simulator/manage.o src/wp43s/programming/manage.c
src/wp43s/matrix.c:1219:51: warning: format specifies type 'short' but the argument has type 'int' [-Wformat]
sprintf(tmpString, "%" PRIi16";%" PRIi16"= %s", colVector ? matSelCol+1 : matSelRow+1, colVector ? 1 : matSelCol+1, nimBufferDisplay);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
src/wp43s/matrix.c:1219:90: warning: format specifies type 'short' but the argument has type 'int' [-Wformat]
sprintf(tmpString, "%" PRIi16";%" PRIi16"= %s", colVector ? matSelCol+1 : matSelRow+1, colVector ? 1 : matSelCol+1, nimBufferDisplay);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
-e
====> src/wp43s/programming/nextStep.c: build/simulator/nextStep.o <====
clang -std=c11 -DOSX -I/usr/local/include/ -O2 -DPC_BUILD -DOS64BIT -fshort-enums -m64 `pkg-config --cflags freetype2` `pkg-config --cflags gtk+-3.0` -Wextra -Wall -MMD -Idep/decNumberICU -Ibuild/generated -Isrc/wp43s -Isrc/testSuite -c -o build/simulator/nextStep.o src/wp43s/programming/nextStep.c
src/wp43s/matrix.c:2308:98: warning: format specifies type 'short' but the argument has type 'int' [-Wformat]
sprintf(errorMessage, "Cannot execute: element (%" PRId16 ", %" PRId16 ") out of range", i + 1, j + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
src/wp43s/matrix.c:2308:105: warning: format specifies type 'short' but the argument has type 'int' [-Wformat]
sprintf(errorMessage, "Cannot execute: element (%" PRId16 ", %" PRId16 ") out of range", i + 1, j + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
__builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
^~~~~~~~~~~
-e
testSuite warnings:
====> src/wp43s/stack.c: build/testSuite/stack.o <====
clang -std=c11 -DOSX -I/usr/local/include/ -O2 -DPC_BUILD -DOS64BIT -fshort-enums -m64 `pkg-config --cflags freetype2` `pkg-config --cflags gtk+-3.0` -Wextra -Wall -MMD -DTESTSUITE_BUILD -Idep/decNumberICU -Ibuild/generated -Isrc/wp43s -Isrc/testSuite -c -o build/testSuite/stack.o src/wp43s/stack.c
src/wp43s/screen.c:53:20: warning: unused variable 'whoStr' [-Wunused-variable]
static const char *whoStr = "WP" STD_SPACE_3_PER_EM "43S" STD_SPACE_3_PER_EM "by" STD_SPACE_3_PER_EM "Pauli," STD_SPACE_3_PER_EM "Walt...
^
src/wp43s/screen.c:54:20: warning: unused variable 'versionStr' [-Wunused-variable]
static const char *versionStr = "WP" STD_SPACE_3_PER_EM "43S" STD_SPACE_3_PER_EM VERSION_STRING;
^
2 warnings generated.
-e
dmcp warnings:
====> src/wp43s/store.c: build/dmcp/store.o <====
arm-none-eabi-gcc -Wno-unused-parameter -DDMCP_BUILD -DOS32BIT -DUSE_HAL_DRIVER -DSTM32L476xx -DARM -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -mthumb -march=armv7e-m -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nosys.specs -Idep/decNumberICU -Ibuild/generated -Isrc/wp43s -Isrc/testSuite -Idep/DMCP_SDK/dmcp -Idep/gmp-6.2.0 -Isrc/wp43s-dmcp -fdata-sections -ffunction-sections -Os -fmerge-all-constants -s -fomit-frame-pointer -Wextra -Wall -MMD -Wa,-a,-ad,-alms=build/dmcp/store.lst -c -o build/dmcp/store.o src/wp43s/store.c
src/wp43s/store.c: In function 'storeIjReal':
src/wp43s/store.c:91:21: warning: variable 'col' set but not used [-Wunused-but-set-variable]
uint16_t row, col;
^~~
src/wp43s/store.c:91:16: warning: variable 'row' set but not used [-Wunused-but-set-variable]
uint16_t row, col;
^~~
-e
====> src/wp43s/stringFuncs.c: build/dmcp/stringFuncs.o <====
arm-none-eabi-gcc -Wno-unused-parameter -DDMCP_BUILD -DOS32BIT -DUSE_HAL_DRIVER -DSTM32L476xx -DARM -D__weak="__attribute__((weak))" -D__packed="__attribute__((__packed__))" -mthumb -march=armv7e-m -mfloat-abi=hard -mfpu=fpv4-sp-d16 --specs=nosys.specs -Idep/decNumberICU -Ibuild/generated -Isrc/wp43s -Isrc/testSuite -Idep/DMCP_SDK/dmcp -Idep/gmp-6.2.0 -Isrc/wp43s-dmcp -fdata-sections -ffunction-sections -Os -fmerge-all-constants -s -fomit-frame-pointer -Wextra -Wall -MMD -Wa,-a,-ad,-alms=build/dmcp/stringFuncs.lst -c -o build/dmcp/stringFuncs.o src/wp43s/stringFuncs.c
-e
Edited by Jaco