logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: fe9e201b3af26af6f0df77e2a4e1c3067cf871f4
parent 372e15f6b6f7ab7c7554980db09f381ea2c64e2b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 24 Oct 2021 14:45:42 +0200

bin/date: Fix deadcode warning in scan-build

Diffstat:

Mbin/date.c2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/date.c b/bin/date.c @@ -53,6 +53,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; + (void)argc; + if(*argv && **argv == '+') format = *argv + 1; if(strftime(outstr, sizeof(outstr), format, tm) == 0)