[glib: 2/3] Fix dropped 'const' qualifier warning in glib/tests/once.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] Fix dropped 'const' qualifier warning in glib/tests/once.c
- Date: Thu, 10 Jun 2021 09:37:35 +0000 (UTC)
commit f4d6680f133b77dfaf43567253a3348ac8e548bf
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Sat May 8 10:19:01 2021 +0200
Fix dropped 'const' qualifier warning in glib/tests/once.c
glib/tests/once.c(199): warning C4090: 'function': different 'const' qualifiers
glib/tests/once.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/tests/once.c b/glib/tests/once.c
index 8fc8d5014..ea521c05b 100644
--- a/glib/tests/once.c
+++ b/glib/tests/once.c
@@ -192,7 +192,7 @@ test_once_init_multi_threaded (void)
static void
test_once_init_string (void)
{
- static const gchar *val;
+ static gchar *val;
g_test_summary ("Test g_once_init_{enter,leave}() usage with a string");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]