Skip to content

Commit

Permalink
deps: fix libzip compilation error with gcc 14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Jul 28, 2024
1 parent 1854205 commit 7b732f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/deps/libzip/lib/zip_source_file_win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b732f8

Please sign in to comment.