Add S2_USE_SYSTEM_INCLUDES cmake options to avoid s2 compile time warnings…#300
Add S2_USE_SYSTEM_INCLUDES cmake options to avoid s2 compile time warnings…#300jmr merged 2 commits intogoogle:masterfrom
Conversation
|
What warnings are you seeing? Maybe we can just fix them. |
I think you're fixing part of them in update from Google PR. But in general I don't think it's convenient for us as users to create PR for every warning (especially for msvc, array[0], undef, etc): Please check commit |
How do I see the warnings? Can you paste the output of what you see without |
|
You can see what it cause: Zero sized array define windows related macros before undef they not cast to void* in memset trivial struct A lot of int/size_t
I don't have windows local, so I need run it in our CI. And we don't compile s2 with warnings, so issue with werror fails because of s2, commonly depends on which headers I include. |
|
In general It's not really difficult to me have such patch local. I just thought it can be useful for other users. If you think it's really unnecessary (why?) I can close it. If you want fix warnings, I think better to add it to S2 tests and CI |
|
abseil-cpp does it, so that's good enough for me. Can you make it an option? |
|
Ok! |
|
@jmr Done |
… from s2 headers