diff options
author | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-14 21:23:49 +0200 |
---|---|---|
committer | Johnny Richard <johnny@johnnyrichard.com> | 2023-04-15 02:13:50 +0200 |
commit | 7d1db093bc3af0d4252bf7c613c8d2a8d7d935b4 (patch) | |
tree | 0d697454ef06b1a5086a0cd1a6718aa02a1322e1 /COPYRIGHT | |
parent | 25e80b71cd2c509865aa9be1c1b69657999263e5 (diff) |
build: Enable warning and debug CFLAGS
After enabling the warning flags, the compiler was firing the following
warnings:
warning: implicit declaration of function ‘strdup’; did you mean ‘strcmp’? [-Wimplicit-function-declaration]
token->value = strdup("(");
^~~~~~
strcmp
warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
token->value = strdup("(");
^
In order to fix these warnings above, I have decided to replace *strdup*
and *strndup* by *strcpy* and *strncpy* functions.
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions