Fixing those warnings from GCC (gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)):
token.c: In function ‘warn_token’:
token.c:96:3: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, msg);
^~~~~~~
token.c: In function ‘bad_position’:
token.c:107:3: warning: format not a string literal and no format arguments [-Wformat-security]
error(msg);
^~~~~
Fixing those warnings from GCC (
gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)
):