Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 37f0348

Browse files
author
jan.kneschke@oracle.com
committed
fixed build failure with sun-cc
"lua-scope.c", line 470: operands have incompatible types: int ":" void g_atomic_int_add() returns a int and our replacement value has to match that type
1 parent e369e33 commit 37f0348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chassis-stats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ CHASSIS_API GHashTable* chassis_stats_get(chassis_stats_t *user_data);
4141

4242
#define CHASSIS_STATS_ALLOC_INC_NAME(name) ((chassis_global_stats != NULL) ? g_atomic_int_inc(&(chassis_global_stats->name ## _alloc)) : (void)0)
4343
#define CHASSIS_STATS_FREE_INC_NAME(name) ((chassis_global_stats != NULL) ? g_atomic_int_inc(&(chassis_global_stats->name ## _free)) : (void)0)
44-
#define CHASSIS_STATS_ADD_NAME(name, addme) ((chassis_global_stats != NULL) ? g_atomic_int_add(&(chassis_global_stats->name), addme) : (void)0)
44+
#define CHASSIS_STATS_ADD_NAME(name, addme) ((chassis_global_stats != NULL) ? g_atomic_int_add(&(chassis_global_stats->name), addme) : 0)
4545
#define CHASSIS_STATS_GET_NAME(name) ((chassis_global_stats != NULL) ? g_atomic_int_get(&(chassis_global_stats->name)) : 0)
4646
#define CHASSIS_STATS_SET_NAME(name, setme) ((chassis_global_stats != NULL) ? g_atomic_int_set(&(chassis_global_stats->name), setme) : (void)0)
4747

0 commit comments

Comments
 (0)