Skip to content

Another atomic warning: master compiled with intel compiler #5774

@jsquyres

Description

@jsquyres

Getting a bazillion of these on master when compiling on x86-64 with the Intel compiler suite -- it appears to be in <sys/atomic_stdc.h>, which means it gets reported for just about every single .c file compilation:

In file included from ../../opal/include/opal/sys/atomic.h(63),
                 from ../../opal/threads/thread_usage.h(30),
                 from ../../opal/class/opal_object.h(126),
                 from ../../opal/datatype/opal_datatype.h(41),
                 from opal_datatype_destroy.c(23):
../../opal/include/opal/sys/atomic_stdc.h(107): warning #2330: argument of type "opal_atomic_int3\
2_t={_Atomic(int32_t={int})} *" is incompatible with parameter of type "volatile void *" (droppin\
g qualifiers)
  OPAL_ATOMIC_STDC_DEFINE_FETCH_OP(add, 32, int32_t, +)
  ^

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions