Add a printf format attribute to PrintAndLogEx so gcc/clang flag argument/specifier mismatches (previous commit fixed the 34 existing ones). On mingw use __MINGW_PRINTF_FORMAT, matching the GNU printf selected by _ISOC99_SOURCE rather than ms_printf. PrintAndLogEx(x, "") is the established way to print an empty line, so -Wno-format-zero-length is added to every build that compiles callers: client Makefile, client CMake, experimental_lib, and cliparser (Makefile and cmake). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
540 B
CMake
14 lines
540 B
CMake
add_library(pm3rrg_rdv4_cliparser STATIC
|
|
cliparser/argtable3.c
|
|
cliparser/cliparser.c
|
|
)
|
|
|
|
target_compile_definitions(pm3rrg_rdv4_cliparser PRIVATE _ISOC99_SOURCE)
|
|
target_include_directories(pm3rrg_rdv4_cliparser PRIVATE
|
|
../../common
|
|
../../include
|
|
../src)
|
|
target_include_directories(pm3rrg_rdv4_cliparser INTERFACE cliparser)
|
|
target_compile_options(pm3rrg_rdv4_cliparser PRIVATE -Wall -Werror -Wno-format-zero-length -O3)
|
|
set_property(TARGET pm3rrg_rdv4_cliparser PROPERTY POSITION_INDEPENDENT_CODE ON)
|