Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvidia_primary.c fails to compile: missing left_update/right_update arguments in fb0FlipRegion()? #26

Open
anbe42 opened this issue Aug 20, 2024 · 0 comments

Comments

@anbe42
Copy link

anbe42 commented Aug 20, 2024

directfb cannot be compiled with Debian's GCC 14:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -I../../src -I../../systems -D_REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-strict-aliasing -Werror-implicit-function-declaration -O3 -g2 -ffast-math -pipe -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/directfb-1.7.7=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_GNU_SOURCE -std=gnu99 -Werror-implicit-function-declaration -c nvidia_primary.c  -fPIC -DPIC -o .libs/nvidia_primary.o
nvidia_primary.c:186:24: error: initialization of 'DFBResult (*)(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags,  const DFBRegion *, CoreSurfaceBufferLock *, const DFBRegion *, CoreSurfaceBufferLock *)' {aka 'DFBResult (*)(struct __DFB_CoreLayer *, void *, void *, void *, struct __DFB_CoreSurface *, DFBSurfaceFlipFlags,  const DFBRegion *, struct __DFB_CoreSurfaceBufferLock *, const DFBRegion *, struct __DFB_CoreSurfaceBufferLock *)'} from incompatible pointer type 'DFBResult (*)(CoreLayer *, void *, void *, void *, CoreSurface *, DFBSurfaceFlipFlags,  CoreSurfaceBufferLock *, CoreSurfaceBufferLock *)' {aka 'DFBResult (*)(struct __DFB_CoreLayer *, void *, void *, void *, struct __DFB_CoreSurface *, DFBSurfaceFlipFlags,  struct __DFB_CoreSurfaceBufferLock *, struct __DFB_CoreSurfaceBufferLock *)'} [-Wincompatible-pointer-types]
  186 |      .FlipRegion     = fb0FlipRegion
      |                        ^~~~~~~~~~~~~
nvidia_primary.c:186:24: note: (near initialization for 'nvidiaPrimaryLayerFuncs.FlipRegion')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant