tests: mark main()'s "argc" as unused
authorLaszlo Ersek <lersek@redhat.com>
Sun, 11 Sep 2022 12:44:23 +0000 (14:44 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 20 Sep 2022 09:08:37 +0000 (10:08 +0100)
commit8535c687e8702be28cf82406de2934ccf04478d5
tree803cbcb683abf2c261707842c531c33d97f3ae40
parent45a7c4d5ed0afd47e0df2f444d33683e17ae53b9
tests: mark main()'s "argc" as unused

Otherwise gcc emits warnings such as

> test-spawn.c: In function ‘main’:
> test-spawn.c:30:11: warning: unused parameter ‘argc’ [-Wunused-parameter]
>    30 | main (int argc, char *argv[])
>       |       ~~~~^~~~

when "-Wextra" is combined with "-Wall", and "-Wextra" is useful.

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
test-ls-version.c
test-multi-match.c
test-spawn.c