/in/database.c: In function 'UPDATEchar':
/in/database.c:258:25: warning: variable 'q' set but not used [-Wunused-but-set-variable]
int i = 0, t, n, m, q;
^
/in/database.c: In function 'DELETE':
/in/database.c:350:12: warning: variable 'arr' set but not used [-Wunused-but-set-variable]
int n, arr[MAX_ASSIGNMENT] = {0}, i, t;
^~~
/in/database.c:348:50: warning: unused parameter 'tablename' [-Wunused-parameter]
void DELETE(int tablenumber, Database *dp, char *tablename, char *course, char *name)
^~~~~~~~~
/in/database.c: In function 'SELECT':
/in/database.c:413:30: warning: variable 'arr' set but not used [-Wunused-but-set-variable]
int num1, num, smallest, arr[MAX_ASSIGNMENT], t, i, j, helper[MAX_ASSIGNMENT];
^~~
/in/database.c:411:50: warning: unused parameter 'tablename' [-Wunused-parameter]
void SELECT(int tablenumber, Database *dp, char *tablename, char *course, char *name, char *field, int limit)
^~~~~~~~~
/in/database.c: In function 'main':
/in/database.c:673:11: warning: unused variable 'fp' [-Wunused-variable]
FILE *fp, *fp1;
^~
/in/database.c:672:200: warning: unused variable 'num1' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~
/in/database.c:672:191: warning: unused variable 'num' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~
/in/database.c:672:181: warning: unused variable 'flag' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~
/in/database.c:672:178: warning: unused variable 'n' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^
/in/database.c:672:175: warning: unused variable 'm' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^
/in/database.c:672:148: warning: unused variable 'arr' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~
/in/database.c:672:145: warning: unused variable 't' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^
/in/database.c:672:107: warning: unused variable 'len' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~
/in/database.c:672:96: warning: unused variable 'q' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^
/in/database.c:672:72: warning: unused variable 'helper' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~~~
/in/database.c:672:65: warning: unused variable 'temp4' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~~
/in/database.c:672:47: warning: unused variable 'temp3' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~~
/in/database.c:672:37: warning: unused variable 'temp' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~
/in/database.c:672:23: warning: unused variable 'smallest' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^~~~~~~~
/in/database.c:672:16: warning: unused variable 'j' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^
/in/database.c:672:9: warning: unused variable 'i' [-Wunused-variable]
int i = 0, j = 0, smallest = 0, temp = 0, temp3, limit = 0, temp4, helper[MAX_ASSIGNMENT], q = -1, r, len, deadline, difficulty, value = 0, t, arr[MAX_ASSIGNMENT] = {0}, m, n, flag = 0, num = 0, num1 = 0;
^
/in/database.c:669:11: warning: unused variable 'tables' [-Wunused-variable]
Table tables[MAX_TABLE] = {'\0'};
^~~~~~
/in/database.c:668:16: warning: unused variable 'assignments' [-Wunused-variable]
Assignment assignments[MAX_ASSIGNMENT] = {'\0'};
^~~~~~~~~~~
/in/database.c:667:231: warning: unused variable 'query' [-Wunused-variable]
char str[10] = {'\0'}, str1[10] = {'\0'}, filename[30] = {'\0'}, filename1[30] = {'\0'}, file1name[30] = {'\0'}, tablename[30] = {'\0'}, course[20] = {'\0'}, name[20] = {'\0'}, field[20], str2[30] = {'\0'}, str3[30] = {'\0'}, query[200] = {'\0'}, valuec[50];
^~~~~
/in/database.c: In function 'UPDATEchar':
/in/database.c:258:22: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
int i = 0, t, n, m, q;
^
/in/database.c: In function 'SELECT':
/in/database.c:565:37: warning: 'num1' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (num >= limit || num >= num1)
~~~~^~~~~~~