From 6dcd1234913f4213ba536a0599c9cba449694cc9 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 28 Dec 2023 20:33:06 +0100 Subject: [PATCH] libcompat: Make long_options array const Warned-by: cppcheck (constVariable) --- lib/compat/getopt1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compat/getopt1.c b/lib/compat/getopt1.c index a8d3dcad9..0ee87b0e3 100644 --- a/lib/compat/getopt1.c +++ b/lib/compat/getopt1.c @@ -90,7 +90,7 @@ main (int argc, char **argv) { int this_option_optind = optind ? optind : 1; int option_index = 0; - static struct option long_options[] = + static const struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, -- 2.11.4.GIT