From: Ivan Maidanski Date: Thu, 25 Jul 2019 07:07:58 +0000 (+0300) Subject: Workaround 'typedef ignored on left of' MSVC warning in imagehlp.h (CMake) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fd5c56db848259a68ad73e71baafad85ef2dc42;p=gc Workaround 'typedef ignored on left of' MSVC warning in imagehlp.h (CMake) * CMakeLists.txt [enable_werror && MSVC]: Add /wd4091 compile option; add comment. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1285a4f1..1161168d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -268,6 +268,9 @@ if (enable_werror) add_compile_options(/w!) elseif (MSVC) add_compile_options(/WX) + # Workaround "typedef ignored on left of ..." warning reported in + # imagehlp.h of e.g. Windows Kit 8.1. + add_compile_options(/wd4091) elseif (WATCOM) add_compile_options(/we) else()