Skip to content

Commit

Permalink
Extend ignoring of incompatible pointer types warning to gcc>13.
Browse files Browse the repository at this point in the history
Fixes #440.
  • Loading branch information
0-wiz-0 committed Jun 24, 2024
1 parent 81fc708 commit f8c294a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Simon Talbot <[email protected]>
SpaceIm
Stephen Bryant <[email protected]>
Tabata Shintaro <[email protected]>
takase1121
Tarmo Pikaro <[email protected]>
Taylor C. Richberger
TC
Expand Down
3 changes: 3 additions & 0 deletions 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 f8c294a

Please sign in to comment.