Skip to content

Fix compilation error on gcc 14+ - #29

Open
nmarks99 wants to merge 1 commit into
epics-modules:masterfrom
nmarks99:master
Open

nmarks99 wants to merge 1 commit into
epics-modules:masterfrom
nmarks99:master

Conversation

@nmarks99

@nmarks99 nmarks99 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Explicitly casting to DEVSUPFUN fixes incompatible-pointer-types which is an error on gcc >= 14:

../../../luaApp/src/rec/luaSoft.c:36:9: error: initialization of ‘long int (*)(void)’ from incompatible pointer type ‘long int (*)(luascriptRecord *)’ [-Wincompatible-pointer-types]
   36 |         write_Script
      |         ^~~~~~~~~~~~
../../../luaApp/src/rec/luaSoft.c:36:9: note: (near initialization for ‘devLuaSoft.write’)
../../../luaApp/src/rec/luaSoft.c:21:13: note: ‘write_Script’ declared here
   21 | static long write_Script(luascriptRecord *record);

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant