]> granicus.if.org Git - gc/commitdiff
Workaround 'typedef ignored on left of' MSVC warning in imagehlp.h (CMake)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 25 Jul 2019 07:07:58 +0000 (10:07 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 25 Jul 2019 07:07:58 +0000 (10:07 +0300)
* CMakeLists.txt [enable_werror && MSVC]: Add /wd4091 compile option;
add comment.

CMakeLists.txt

index 1285a4f143babe5c052fee55d875e80444e8d9c6..1161168dfe81086067ef33b8567f2b8508c445f8 100644 (file)
@@ -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()