From 51cc939d0ced111b5581cda15d71e54136e3e2a1 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 30 Jul 2024 15:17:13 -0400 Subject: [PATCH] Suppress a couple of cppcheck warnings. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index cb1f466a..9b7d3143 100644 --- a/src/main.c +++ b/src/main.c @@ -83,6 +83,8 @@ static void sigxcpu(int sig) int r = write(STDERR_FILENO, "\n\nmax-execution-time exceeded.\n\n", 32); /* Pretend to use r to avoid compiler warning */ + /* cppcheck-suppress duplicateExpression */ + /* cppcheck-suppress knownArgument */ _exit(1 + (r-r)); }