[Openmp-dev] field 'offset' will be initialized after field 'num_waiting_threads'

Jack Howarth howarth.mailing.lists at gmail.com
Tue Jun 2 18:55:33 PDT 2015


Jonathan,
      There are a few occurrences of the following warnings in the
openmp build...

In file included from
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_barrier.cpp:17:
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_wait_release.h:467:49:
warning: field 'offset' will be initialized after field
'num_waiting_threads' [-Wreorder]
        : kmp_flag<kmp_uint64>(p, flag_oncore), offset(idx),
num_waiting_threads(0), flag_switch(false) {}
                                                ^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_wait_release.h:476:11:
warning: field 'itt_sync_obj' will be initialized after field
'num_waiting_threads' [-Wreorder]
        , itt_sync_obj(itt)
          ^

Can this be solved by re-ordering?
            Jack



More information about the Openmp-dev mailing list