Skip to content

fs_amigados.c - fails compile due to incompatible pointer types #42

@ve7it

Description

@ve7it

Greetings,
I am using a current up to date x64 arch system.

I have noticed a build problem on arch as shown below:

gcc -o fs_amigados.o -c ../sources/fs_manager/fs_amigados/fs_amigados.c -O3 -I../sources/ -I ../../libhxcadaptor/sources -I ../../build -Wall -fPIC -Wl,-Map,foo.map
../sources/fs_manager/fs_amigados/fs_amigados.c: In function ‘HxCadfInitNativeFct’:
../sources/fs_manager/fs_amigados/fs_amigados.c:278:32: error: assignment to ‘int32_t (*)(void)’ {aka ‘int (*)(void)’} from incompatible pointer type ‘int32_t (*)(struct Device *)’ {aka ‘int (*)(struct Device *)’} [-Wincompatible-pointer-types]
  278 |         nFct->adfReleaseDevice = HxCADFLibReleaseDevice ;
      |                                ^
../sources/fs_manager/fs_amigados/fs_amigados.c:249:9: note: ‘HxCADFLibReleaseDevice’ declared here
  249 | RETCODE HxCADFLibReleaseDevice(struct Device *dev)
      |         ^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:301: fs_amigados.o] Error 1
make[1]: Leaving directory '/home/lg/.cache/yay/hxc-floppy-emulator/src/HxCFloppyEmulator-HxCFloppyEmulator_V2_16_11_1/libhxcfe/build'
make: *** [Makefile:9: libhxcfe] Error 2
make: Leaving directory '/home/lg/.cache/yay/hxc-floppy-emulator/src/HxCFloppyEmulator-HxCFloppyEmulator_V2_16_11_1/build'
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: hxc-floppy-emulator-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
hxc-floppy-emulator - exit status 4

I suspect this has just shown up due to tighter compiler rules.
cheers
Lawrence

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