/in/database.c: In function 'main':
/in/database.c:119:13: warning: format not a string literal and no format arguments [-Wformat-security]
printf(Insert(instr1));
^~~~~~
/in/database.c:133:13: warning: format not a string literal and no format arguments [-Wformat-security]
printf(Save(instr1,instr2));
^~~~~~
/in/database.c:138:13: warning: format not a string literal and no format arguments [-Wformat-security]
printf(Load(instr1));
^~~~~~
/in/database.c: In function 'Load':
/in/database.c:157:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<=len;i++)
^~
/in/database.c:146:11: warning: unused variable 'line' [-Wunused-variable]
char *line = (char *)malloc(256 * sizeof(char));
^~~~
/in/database.c: In function 'Save':
/in/database.c:224:16: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(fp,db.tables[tablesign].name);
^~
/in/database.c: In function 'Printtable':
/in/database.c:474:12: warning: format not a string literal and no format arguments [-Wformat-security]
printf(db.tables[tablesign].name);printf("\n");
^~
/in/database.c: In function 'List':
/in/database.c:499:16: warning: format not a string literal and no format arguments [-Wformat-security]
printf(tablenamelist[i]);printf("\n");
^~~~~~~~~~~~~
/in/database.c: In function 'AUTO':
/in/database.c:610:13: warning: format not a string literal and no format arguments [-Wformat-security]
printf(Insert(instr1));
^~~~~~
/in/database.c:624:13: warning: format not a string literal and no format arguments [-Wformat-security]
printf(Save(instr1,instr2));
^~~~~~
/in/database.c:629:13: warning: format not a string literal and no format arguments [-Wformat-security]
printf(Load(instr1));
^~~~~~
/in/database.c:527:9: warning: unused variable 'sign' [-Wunused-variable]
int sign=0,type=0,limitnum;
^~~~
/in/database.c:521:11: warning: unused variable 'line' [-Wunused-variable]
char *line = (char *)malloc(256 * sizeof(char));
^~~~
/in/database.c: In function 'Save':
/in/database.c:225:36: warning: 'tablesign' may be used uninitialized in this function [-Wmaybe-uninitialized]
for (i=0;i<db.tables[tablesign].assignNum;i++)
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/in/database.c: In function 'Insert':
/in/database.c:260:62: warning: 'tablesign' may be used uninitialized in this function [-Wmaybe-uninitialized]
db.tables[tablesign].assignments[i].deadline = tpddl;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/in/database.c: In function 'Update':
/in/database.c:283:47: warning: 'tablesign' may be used uninitialized in this function [-Wmaybe-uninitialized]
int courseright[100],right[100],i,p=0,o=0,tablesign;
^~~~~~~~~
/in/database.c: In function 'Delete':
/in/database.c:342:47: warning: 'tablesign' may be used uninitialized in this function [-Wmaybe-uninitialized]
int courseright[100],right[100],i,p=0,o=0,tablesign;
^~~~~~~~~
/in/database.c: In function 'Select':
/in/database.c:453:26: warning: 'tpminsign' may be used uninitialized in this function [-Wmaybe-uninitialized]
dfctright[i] = tpminsign;
~~~~~~~~~~~~~^~~~~~~~~~~
/in/database.c:394:62: warning: 'tablesign' may be used uninitialized in this function [-Wmaybe-uninitialized]
int courseright[100],right[100],dfctright[100],i,p=0,o=0,tablesign,tpmin,tpminsign;
^~~~~~~~~
/in/database.c: In function 'Printtable':
/in/database.c:476:36: warning: 'tablesign' may be used uninitialized in this function [-Wmaybe-uninitialized]
for (i=0;i<db.tables[tablesign].assignNum;i++)
~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /in/database.c:1:
In function 'fgets',
inlined from 'Load.part.0' at /in/database.c:154:12,
inlined from 'Load':
/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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~