summaryrefslogtreecommitdiff
path: root/cmake/modules/GLibTools.cmake
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2021-01-08 12:32:25 +0100
committerMilan Crha <mcrha@redhat.com>2021-01-08 12:32:25 +0100
commit1c60e41db5d7c170539d700e028368cf7e5b9e27 (patch)
tree4c3f4d20a882cf71729ac6615d5dc777d76d810c /cmake/modules/GLibTools.cmake
parentf1be9dbc80b0c4b22648fa66cc539d97e8744a61 (diff)
downloadevolution-data-server-1c60e41db5d7c170539d700e028368cf7e5b9e27.tar.gz
Fix variable type to calls of g_once_init_enter()
The variable should not be declared as 'volatile', compiler claims a warning otherwise.
Diffstat (limited to 'cmake/modules/GLibTools.cmake')
-rw-r--r--cmake/modules/GLibTools.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/GLibTools.cmake b/cmake/modules/GLibTools.cmake
index f46ff6c02..39ccf0f29 100644
--- a/cmake/modules/GLibTools.cmake
+++ b/cmake/modules/GLibTools.cmake
@@ -114,7 +114,7 @@ set(SOURCE_TMPL "
GType
@enum_name@_get_type (void)
{
- static volatile gsize the_type__volatile = 0;
+ static gsize the_type__volatile = 0;
if (g_once_init_enter (&the_type__volatile)) {
static const G\@Type\@Value values[] = {