-
Type: Bug
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
RHEL 7.0 with GCC 4.8.5 produces warnings for incompatible pointer types.
/data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.c:28:4: warning: passing argument 1 of 'bson_atomic_int32_fetch_add' from incompatible pointer type [enabled by default] return n + bson_atomic_int32_fetch_add (p, n, bson_memory_order_seq_cst); ^ In file included from /data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.c:18:0: /data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.h:175:28: note: expected 'volatile long int *' but argument is of type 'volatile int32_t *' static BSON_INLINE Type bson_atomic_##NamePart##_fetch_add ( \ ^ /data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.h:350:1: note: in expansion of macro 'DECL_ATOMIC_INTEGRAL' DECL_ATOMIC_INTEGRAL (int32, long, ) ^
In file included from /data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.c:18:0: /data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.h:298:28: note: expected 'volatile char *' but argument is of type 'int8_t *' static BSON_INLINE Type bson_atomic_##NamePart##_compare_exchange_weak ( \ ^ /data/mci/0679d561d3a78b572969638933bfea70/mongoc/src/libbson/src/bson/bson-atomic.h:347:1: note: in expansion of macro 'DECL_ATOMIC_INTEGRAL' DECL_ATOMIC_INTEGRAL (int8, char, 8); ^
This impacts consumers building with -Werror.
- is depended on by
-
PHPC-2013 RHEL 7.0 and 7.1 builds fail due to incompatible pointer warnings
- Closed
- is related to
-
CDRIVER-4229 zSeries /atomic/integers aborts with "Illegal instruction"
- Closed
-
CDRIVER-4124 Clean Up Internal Atomic APIs
- Closed