Skip to content

Commit d1f3cb7

Browse files
committed
scripts: Update cppcheck invocation
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]>
1 parent 4baa354 commit d1f3cb7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/cppcheck.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ suppress+=" --suppress=unusedFunction:kernel-stub/main.c"
2929
suppress+=" --suppress=unusedFunction:utils.c"
3030
suppress+=" --suppress=unusedFunction:env/env_api.c"
3131
suppress+=" --suppress=unusedFunction:env/fatvars.c"
32+
suppress+=" --suppress=unusedFunction:tools/tests/fake_devices.c"
3233
suppress+=" --suppress=unusedFunction:tools/tests/test_environment.c"
3334
suppress+=" --suppress=unusedFunction:env/env_api_fat.c"
3435
# Some functions are used by linker wrapping
@@ -44,9 +45,9 @@ suppress+=" --suppress=nullPointerRedundantCheck:kernel-stub/main.c"
4445
suppress+=" --suppress=unusedStructMember:kernel-stub/main.c"
4546
suppress+=" --suppress=unusedStructMember:kernel-stub/fdt.c"
4647
# Not applicable because of API requirements
47-
suppress+=" --suppress=constParameter:drivers/watchdog/ipc4x7e_wdt.c"
48-
suppress+=" --suppress=constParameter:drivers/watchdog/w83627hf_wdt.c"
49-
suppress+=" --suppress=constParameter:kernel-stub/initrd.c"
48+
suppress+=" --suppress=constParameterCallback:drivers/watchdog/ipc4x7e_wdt.c"
49+
suppress+=" --suppress=constParameterCallback:drivers/watchdog/w83627hf_wdt.c"
50+
suppress+=" --suppress=constParameterCallback:kernel-stub/initrd.c"
5051

5152
enable="--enable=warning \
5253
--enable=style \

0 commit comments

Comments
 (0)