--- a/CMakeLists.txt	2017-01-23 16:33:46.000000000 +0100
+++ b/CMakeLists.txt	2020-03-08 21:12:00.225068400 +0100
@@ -74,7 +74,6 @@
 # CMP0026 to avoid warnings for the use of LOCATION in GET_TARGET_PROPERTY.
 
 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
-CMAKE_POLICY(SET CMP0026 OLD)
 
 SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) # for FindReadline.cmake
 
@@ -191,6 +190,7 @@
 ENDIF(MINGW)
 
 IF(MSVC)
+  add_definitions(/wd4703 /wd4146 /wd4308)
   OPTION(PCRE_STATIC_RUNTIME
 	"ON=Compile against the static runtime (/MT)."
 	OFF)
