Skip to content

Commit

Permalink
Disable -Wno-incompatible-function-pointer-types only on non-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 committed Jan 18, 2025
1 parent e1d0d46 commit 606b7ab
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,12 +962,13 @@ def determine_sdl3():
base_flags, sdl3_flags, sdl3_depends, _extra_args
)

sources["core/image/_img_sdl3.pyx"] = merge(
sources["core/image/_img_sdl3.pyx"],
{
"extra_compile_args": ["-Wno-incompatible-function-pointer-types"],
},
)
if platform != 'win32':
sources["core/image/_img_sdl3.pyx"] = merge(
sources["core/image/_img_sdl3.pyx"],
{
"extra_compile_args": ["-Wno-incompatible-function-pointer-types"],
},
)

if c_options['use_pangoft2'] in (None, True) and platform not in (
'android', 'ios', 'win32'):
Expand Down

0 comments on commit 606b7ab

Please sign in to comment.