Page MenuHomePhabricator

[OpenMP] Silence more warning flags
ClosedPublic

Authored by mstorsjo on Feb 12 2021, 1:55 AM.

Details

Summary

This silences warnings like these, in mingw builds with clang:

runtime/src/kmp_atomic.h:1021:13: warning: '__kmpc_atomic_cmplx8_rd' has C-linkage specified, but returns user-defined type 'kmp_cmplx64' (aka '__kmp_cmplx64_t') which is incompatible with C [-Wreturn-type-c-linkage]

runtime/src/z_Windows_NT_util.cpp:479:17: warning: cast from 'volatile void *' to 'type-parameter-0-0 *' drops volatile qualifier [-Wcast-qual]
    flag = (C *)th->th.th_sleep_loc;

runtime/src/z_Windows_NT_util.cpp:1321:14: warning: cast to 'void *' from smaller integer type 'DWORD' (aka 'unsigned long') [-Wint-to-void-pointer-cast]
  } else if ((void *)exit_val != (void *)th) {

Diff Detail

Event Timeline

mstorsjo created this revision.Feb 12 2021, 1:55 AM
mstorsjo requested review of this revision.Feb 12 2021, 1:55 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: sstefan1. · View Herald Transcript
This revision is now accepted and ready to land.Feb 12 2021, 9:18 AM
This revision was automatically updated to reflect the committed changes.