ebassi / graphene

A thin layer of graphic data types

Home Page:http://ebassi.github.io/graphene

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

-Wundef warnings on Windows

lazka opened this issue · comments

Building gtk4 on Windows which uses -Wundef results in lots of warnings (see https://gitlab.gnome.org/creiter/gtk/-/jobs/21892):

C:/msys64/mingw32/lib/graphene-1.0/include/graphene-config.h:15:27: warning: "_M_IX86_FP" is not defined, evaluates to 0 [-Wundef]
 # if defined(__SSE__) || (_M_IX86_FP > 0) || (_M_X64 > 0) || (_MSC_VER >= 1800)
                           ^~~~~~~~~~
C:/msys64/mingw32/lib/graphene-1.0/include/graphene-config.h:15:47: warning: "_M_X64" is not defined, evaluates to 0 [-Wundef]
 # if defined(__SSE__) || (_M_IX86_FP > 0) || (_M_X64 > 0) || (_MSC_VER >= 1800)
                                               ^~~~~~
C:/msys64/mingw32/lib/graphene-1.0/include/graphene-config.h:15:63: warning: "_MSC_VER" is not defined, evaluates to 0 [-Wundef]
 # if defined(__SSE__) || (_M_IX86_FP > 0) || (_M_X64 > 0) || (_MSC_VER >= 1800)
                                                               ^~~~~~~~

It would be nice to have a MSVC compiler flag to catch the equivalent of -Wundef as well.

I could add a MSYS2 job to appveyor if you want.

@lazka The MSYS2 job would be appreciated as well. Did PR #115 work?

@lazka The MSYS2 job would be appreciated as well

ok, added to my list

Did PR #115 work?

Yes, build output: https://bpaste.net/show/5108f78c1a5e

Thanks!

I see other issues in that build log; would you mind filing them as well?