/in/database.c: In function 'list':
/in/database.c:72:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < strlen(db->tables[i].name); j++) {
^
/in/database.c: In function 'main':
/in/database.c:293:9: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
gets(command);
^~~~
fgets
/in/database.c:299:36: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[15]' [-Wformat=]
sscanf(command, "LOAD %s\n", &str);
~^ ~~~~
In file included from /usr/include/stdio.h:862:0,
from /in/database.c:1:
In function 'fgets',
inlined from 'load' at /in/database.c:19:12:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccDWyXWu.o: In function `main':
database.c:(.text.startup+0x406): warning: the `gets' function is dangerous and should not be used.