Menu

#2 Patch to fix implicit declaration warning/error

Unstable_(example)
open
nobody
None
5
2023-10-15
2023-10-15
No

When compiling gnuski on macOS sonoma, the following error is raised due to an implicit declaration:

  gcc -O2 -o gnuski main.c objects.c -lncurses
  main.c:45:3: error: call to undeclared function 'setupColors'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    setupColors ();
    ^

This patches fixes this issue.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.