[Openmp-dev] anonymous structs are a GNU extension

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


Jonathan,
       Currently the openmp build using the clang compiler emits
warnings from the use of the anonymous structs GNU extension ...

In file included from
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp_ftn_cdecl.c:16:
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp.h:1420:5:
warning: anonymous structs are a GNU extension
[-Wgnu-anonymous-struct]
    struct KMP_ALIGN( 32 ) { // AC: changed 16 to 32 in order to
simplify template
    ^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp.h:1454:5:
warning: anonymous structs are a GNU extension
[-Wgnu-anonymous-struct]
    struct KMP_ALIGN( 32 ) {
    ^
/sw/src/fink.build/llvm37-3.7.0-100/llvm-3.7.0.src/projects/openmp/runtime/src/kmp.h:1685:5:
warning: anonymous structs are a GNU extension
[-Wgnu-anonymous-struct]
    struct {
    ^

The attached patch adds pragma clang diagnostic statements to suppress
these warnings.
                  Jack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: silence_Wgnu-anonymous-struct.patch
Type: application/octet-stream
Size: 2061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150603/071cf6fb/attachment.obj>


More information about the Openmp-dev mailing list