From cc6614592435073f918b1da420d5c922c177469c Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 15 Feb 2012 09:12:35 +0400 Subject: [PATCH] Prevent compiler warning in specific GC_key_create_inner (fix commit e07b66f) * specific.c (GC_key_create_inner): Add explicit cast of invalid_tse pointer ("un-const") to prevent compiler warning. --- specific.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specific.c b/specific.c index e7beaa5c..5f4765df 100644 --- a/specific.c +++ b/specific.c @@ -36,7 +36,7 @@ GC_INNER int GC_key_create_inner(tsd ** key_ptr) if (0 == result) return ENOMEM; pthread_mutex_init(&(result -> lock), NULL); for (i = 0; i < TS_CACHE_SIZE; ++i) { - result -> cache[i] = &invalid_tse; + result -> cache[i] = (/* no const */ tse *)&invalid_tse; } # ifdef GC_ASSERTIONS for (i = 0; i < TS_HASH_SIZE; ++i) { -- 2.40.0