From 7b732f814650d085c7c38cb01f71b5a8c81ad546 Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 28 Jul 2024 19:14:48 +0200 Subject: [PATCH] deps: fix libzip compilation error with gcc 14.1 --- core/deps/libzip/lib/zip_source_file_win32.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/deps/libzip/lib/zip_source_file_win32.h b/core/deps/libzip/lib/zip_source_file_win32.h index d86069ecaa..86ef2651c8 100644 --- a/core/deps/libzip/lib/zip_source_file_win32.h +++ b/core/deps/libzip/lib/zip_source_file_win32.h @@ -76,6 +76,9 @@ int _zip_win32_error_to_errno(DWORD win32err); #ifdef __clang__ #define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wincompatible-function-pointer-types\"") #define DONT_WARN_INCOMPATIBLE_FN_PTR_END _Pragma("GCC diagnostic pop") +#elif defined(__GNUC__) && __GNUC__ > 13 +#define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wincompatible-pointer-types\"") +#define DONT_WARN_INCOMPATIBLE_FN_PTR_END _Pragma("GCC diagnostic pop") #else #define DONT_WARN_INCOMPATIBLE_FN_PTR_BEGIN #define DONT_WARN_INCOMPATIBLE_FN_PTR_END