From c03e0c8317db7040c88c62dbed0338aa7209d79e Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 21 Jul 2017 00:44:05 +0300 Subject: [PATCH] Eliminate CSA warning of unmodified non-const static var (disclaim_test) (fix commit 7b0be48) * tests/disclaim_test.c (pair_magic): Make it const itself. --- tests/disclaim_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/disclaim_test.c b/tests/disclaim_test.c index b7c92010..f737ede3 100644 --- a/tests/disclaim_test.c +++ b/tests/disclaim_test.c @@ -91,7 +91,7 @@ struct pair_s { pair_t cdr; }; -static const char *pair_magic = "PAIR_MAGIC_BYTES"; +static const char * const pair_magic = "PAIR_MAGIC_BYTES"; int is_pair(pair_t p) { -- 2.40.0