Thanks!
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
On Wed, Dec 17, 2014 at 1:42 PM, Justin TerAvest <tera...@chromium.org> wrote:I'm trying to enable warnings for C4668 in native_client builds to force errors
for the case where necessary macro values aren't defined.
However, adding "/we4668" to the MSVS build triggers a bunch of errors from
system includes, like the following:
d:\src\depot_tools\win_toolchain\vs2013_files\win8sdk\include\um\processthreadsapi.h(1170)
: error C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor
macro, replacing with '0' for '#if/#elif'
d:\src\depot_tools\win_toolchain\vs2013_files\win8sdk\include\um\winbase.h(8618)
: error C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro,
replacing with '0' for '#if/#elif'
The advice I've found is to wrap the problematic includes with
pragmas, like this:
#pragma warning(push)
#pragma warning(disable:4668)
//Some includes with unfixable warnings
#pragma warning(pop)
Presumably we've run into this before when new warnings have been
enabled on Windows.
Is there a better way to deal with warnings coming from "system" includes?(1) Make sure you file bugs for this upstream with the Visual Studio team, so they can fix them.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f3c354ea-8739-46d2-a355-32800e357bd2%40chromium.org.