[Openmp-dev] missing field 'flags' initializer

Jack Howarth howarth.mailing.lists at gmail.com
Wed Jun 3 10:24:30 PDT 2015


Jonathan,
      Another interesting warning that repeats several times during
the openmp build is...

/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_itt.inl:64:46:
warning: missing field 'flags' initializer
[-Wmissing-field-initializers]
static kmp_bootstrap_lock_t  metadata_lock =
KMP_BOOTSTRAP_LOCK_INITIALIZER( metadata_lock );
                                             ^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_lock.h:501:48:
note: expanded from macro 'KMP_BOOTSTRAP_LOCK_INITIALIZER'
#define KMP_BOOTSTRAP_LOCK_INITIALIZER( lock )
KMP_TICKET_LOCK_INITIALIZER( (lock) )
                                               ^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_lock.h:262:99:
note: expanded from macro 'KMP_TICKET_LOCK_INITIALIZER'
#define KMP_TICKET_LOCK_INITIALIZER( lock ) { { (kmp_ticket_lock_t *)
& (lock), NULL, 0, 0, 0, -1 } }

                           ^
In file included from
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_settings.c:20:
In file included from
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_itt.h:286:

It's not clear to me what needs to be done to suppress these warnings.
            Jack



More information about the Openmp-dev mailing list