mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-09-08 14:15:33 +00:00
With the linker pin in place the proxspace job gets past the bootrom and dies later instead, in the cmake build: client/deps/jansson/load.c:193:35: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] client/CMakeLists.txt already turns that false positive off for GCC 10 and newer, but it does it at line 876 while add_subdirectory(deps) runs at line 295. CMake copies the calling scope into a subdirectory at the add_subdirectory call, so anything set afterwards never reaches the bundled deps, and jansson is built without the suppression that the rest of the client gets. Move the block above the add_subdirectory call in both client and experimental_lib. Checked by configuring before and after: 0 of 17 deps targets carried -Wno-error=stringop-overflow in their flags.make before, 17 of 17 after. ubuntu-cmake and macos-cmake stay green either way; their compilers do not emit this particular false positive, which is why the gap went unnoticed while the bootrom link was failing first. Signed-off-by: Cole Munz <Munzzyy1@proton.me>