/in/database.c:9:0: warning: "MAX_LINE" redefined
#define MAX_LINE 200
/in/database.c:5:0: note: this is the location of the previous definition
#define MAX_LINE 120
/in/database.c: In function 'LIST':
/in/database.c:77:14: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Table *p=&database->tables;
^
/in/database.c: In function 'PRINTF':
/in/database.c:97:20: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Assignment *p1=&table->assignments;
^
/in/database.c: In function 'SAVE':
/in/database.c:113:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Assignment *p=&table->assignments;
^
/in/database.c: In function 'PRINTDEADLINE':
/in/database.c:131:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Assignment *p=&table->assignments;
^
/in/database.c: In function 'PRINTDIFFICULTY':
/in/database.c:149:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Assignment *p=&table->assignments;
^
/in/database.c: In function 'PRINT':
/in/database.c:169:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
Assignment *p=&table->assignments;
^
/in/database.c: In function 'DELETE':
/in/database.c:251:54: warning: comparison between pointer and integer
for (int j = 1; find->difficulty != NULL; j++)
^~
/in/database.c:266:30: warning: statement with no effect [-Wunused-value]
dbpinside->tables+1;
~~~~~~~~~~~~~~~~~^~
/in/database.c:240:17: warning: unused variable 'B' [-Wunused-variable]
{ int p=0;int B=1;int i=0;
^
/in/database.c: In function 'main':
/in/database.c:391:103: warning: unused variable 'tool4' [-Wunused-variable]
char tabname[20]={'\0'};char tool3[2];char course[20]={'\0'}; char assign[20]={'\0'};char tool4[2];char *ptr;
^~~~~
/in/database.c:390:18: warning: unused variable 'update' [-Wunused-variable]
char update[6];char tool1[2];char changething[15]={'\0'};char change[15]={'\0'}; char tool2[2];
^~~~~~
/in/database.c:287:14: warning: unused variable 'name_file' [-Wunused-variable]
char name_file[6];
^~~~~~~~~
/in/database.c:275:46: warning: variable 'dbp' set but not used [-Wunused-but-set-variable]
Database db = {.tableNum = 0}; Database *dbp;dbp=&db;
^~~
/in/database.c: In function 'PRINTF':
/in/database.c:102:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/in/database.c: In function 'PRINTF_DEAD_OR_DIFF':
/in/database.c:109:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^