From: Jan Kiszka <[email protected]> constParameter is now constParameterCallback, but nothing changed about the reason to apply it.
Furthermore, this suppresses tools/tests/fake_devices.c:24:0: style: The function 'allocate_fake_devices' is never used. [unusedFunction] void allocate_fake_devices(int n) ^ tools/tests/fake_devices.c:53:0: style: The function 'add_fake_partition' is never used. [unusedFunction] void add_fake_partition(int devnum) ^ tools/tests/fake_devices.c:101:0: style: The function 'ped_device_get_next_custom_fake' is never used. [unusedFunction] PedDevice *ped_device_get_next_custom_fake(const PedDevice *dev) ^ Signed-off-by: Jan Kiszka <[email protected]> --- scripts/cppcheck.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/cppcheck.sh b/scripts/cppcheck.sh index 75feab4..0bd1310 100755 --- a/scripts/cppcheck.sh +++ b/scripts/cppcheck.sh @@ -29,6 +29,7 @@ suppress+=" --suppress=unusedFunction:kernel-stub/main.c" suppress+=" --suppress=unusedFunction:utils.c" suppress+=" --suppress=unusedFunction:env/env_api.c" suppress+=" --suppress=unusedFunction:env/fatvars.c" +suppress+=" --suppress=unusedFunction:tools/tests/fake_devices.c" suppress+=" --suppress=unusedFunction:tools/tests/test_environment.c" suppress+=" --suppress=unusedFunction:env/env_api_fat.c" # Some functions are used by linker wrapping @@ -44,9 +45,9 @@ suppress+=" --suppress=nullPointerRedundantCheck:kernel-stub/main.c" suppress+=" --suppress=unusedStructMember:kernel-stub/main.c" suppress+=" --suppress=unusedStructMember:kernel-stub/fdt.c" # Not applicable because of API requirements -suppress+=" --suppress=constParameter:drivers/watchdog/ipc4x7e_wdt.c" -suppress+=" --suppress=constParameter:drivers/watchdog/w83627hf_wdt.c" -suppress+=" --suppress=constParameter:kernel-stub/initrd.c" +suppress+=" --suppress=constParameterCallback:drivers/watchdog/ipc4x7e_wdt.c" +suppress+=" --suppress=constParameterCallback:drivers/watchdog/w83627hf_wdt.c" +suppress+=" --suppress=constParameterCallback:kernel-stub/initrd.c" enable="--enable=warning \ --enable=style \ -- 2.43.0 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/efibootguard-dev/d089abaa5f7848483f52c625744e355b9b903fb1.1747253700.git.jan.kiszka%40siemens.com.
