logo

utils-std

Collection of commonly available Unix tools
commit: bc03a36abe59c1f95bbdd27e7aa2f83ce4fe269c
parent cf0023b814c2f0103086a179d5090658e83525d6
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  2 May 2024 13:13:09 +0200

cmd/{nice,nohup}: Silence dead-increment

Diffstat:

Mcmd/nice.c1+
Mcmd/nohup.c1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cmd/nice.c b/cmd/nice.c @@ -58,6 +58,7 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; + (void)argc; errno = 0; diff --git a/cmd/nohup.c b/cmd/nohup.c @@ -99,6 +99,7 @@ main(int argc, char *argv[]) argc -= 1; argv += 1; + (void)argc; assert(argv[0]); assert(errno == 0);