]> granicus.if.org Git - gc/commitdiff
Eliminate CSA warning of unmodified non-const static var (disclaim_test)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 20 Jul 2017 21:44:05 +0000 (00:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 20 Jul 2017 21:44:05 +0000 (00:44 +0300)
(fix commit 7b0be48)

* tests/disclaim_test.c (pair_magic): Make it const itself.

tests/disclaim_test.c

index b7c920108391a4812a662b6e0037cfbb147371fa..f737ede3cdbc125879fd75fe56163178bb7fad5f 100644 (file)
@@ -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)
 {