oK, so that didn't help...
The better fix is anyway to patch the code to remove the improper
implicit declaration, so suggest you look more to that direction.
On 27/07/2022 3:53 pm, Mark Brethen wrote:
Clang12 w/-std=c99:
:info:build parser.c:85:5: warning: implicit declaration of function
'DrawCommandLine' is invalid in C99 [-Wimplicit-function-declaration]
Clang14 w/-std=c89:
:info:build /usr/bin/clang -std=c89 -Os -arch x86_64 -I./
-I/opt/local/include -I/opt/local/include/GL -I../../libSNL/src
-I../../glut-3.5/src -c -o parser.o parser.c
:info:build parser.c:85:5: error: implicit declaration of function
'DrawCommandLine' [-Werror,-Wimplicit-function-declaration]
:info:build DrawCommandLine(keystroke, strlen(keystroke)+*curshft);
:info:build ^
:info:build 1 error generated.
:info:build make: *** [parser.o] Error 1
Mark Brethen
mark.bret...@gmail.com <mailto:mark.bret...@gmail.com>
On Jul 27, 2022, at 7:23 AM, Chris Jones <jon...@hep.phy.cam.ac.uk
<mailto:jon...@hep.phy.cam.ac.uk>> wrote:
Latest clang compilers probably default to a 'recent' c standard,
unless otherwise told. If the code in question only builds using the
less restrictive older standards, then the builds should specify this
using -std=c89 for instance..