boostorg / winapi

Windows API declarations without <windows.h>, for internal Boost use.
63 stars 55 forks source link

"ISO C++ prohibits anonymous structs" warning in system.hpp #64

Closed pdimov closed 6 years ago

pdimov commented 6 years ago

The Pool tests use -Werror and fail under MinGW with

..\../boost/winapi/system.hpp:52:9: error: ISO C++ prohibits anonymous structs [-Werror=pedantic]
         } DUMMYSTRUCTNAME;
         ^

The member is given a dummy name, but the struct itself isn't.

Lastique commented 6 years ago

Duplicates https://github.com/boostorg/winapi/issues/62.