Skip to content

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

@anbe42

Description

@anbe42

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions