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 > On Jul 27, 2022, at 7:23 AM, Chris Jones <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..