[Openmp-dev] field 'offset' will be initialized after field 'num_waiting_threads'
Peyton, Jonathan L
jonathan.l.peyton at intel.com
Wed Jun 3 10:31:08 PDT 2015
Reordered.
Committed revision 238946.
-- Johnny
-----Original Message-----
From: Jack Howarth [mailto:howarth.mailing.lists at gmail.com]
Sent: Tuesday, June 2, 2015 8:56 PM
To: Peyton, Jonathan L; openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: field 'offset' will be initialized after field 'num_waiting_threads'
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