git.annexia.org
/
miniexpect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
8535c68
)
tests: mark main()'s "argc" as unused
author
Laszlo Ersek
<lersek@redhat.com>
Sun, 11 Sep 2022 12:44:23 +0000
(14:44 +0200)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 20 Sep 2022 09:08:37 +0000
(10:08 +0100)
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>
No differences found