From d5ca0aef8cdc8da1313d0b81d42adfb8ee9bd5f1 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Tue, 30 Apr 2024 09:15:02 +0200 Subject: [PATCH] fix(build): disable `cast-function-type` and `pedantic` warnings for MinGW --- support/BuildSupport.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/BuildSupport.cmake b/support/BuildSupport.cmake index 469f199..6beb797 100644 --- a/support/BuildSupport.cmake +++ b/support/BuildSupport.cmake @@ -18,8 +18,8 @@ function(bs_select_cflags SANITIZERS COMPILE LINK) endif() if (MINGW) - list(APPEND _INTERNAL_COMPILE_FLAGS "-static") - list(APPEND _INTERNAL_LINK_FLAGS "-static") + list(APPEND _INTERNAL_COMPILE_FLAGS "-Wno-cast-function-type -Wno-pedantic -static") + list(APPEND _INTERNAL_LINK_FLAGS "-Wno-cast-function-type -Wno-pedantic -static") endif() # return _INTERNAL_COMPILE_FLAGS, _INTERNAL_LINK_FLAGS;