/in/database.c: In function 'LOAD':
/in/database.c:44:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < strlen(token); j++) {//这里不知道能不能用strcpy,我没试过
^
/in/database.c:48:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < strlen(token); j++) {
^
/in/database.c: In function 'SAVE':
/in/database.c:126:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int q=n+1; q<strlen(a);q++)
^
/in/database.c: In function 'INSERT':
/in/database.c:193:5: warning: statement with no effect [-Wunused-value]
for (n; n<strlen(b);n++)
^~~
/in/database.c:193:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (n; n<strlen(b);n++)
^
/in/database.c: In function 'UPDATE':
/in/database.c:214:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=2;i<strlen(a);i++)//不要前面的括号和空格,妨碍老子操作
^
/in/database.c: In function 'DELETE':
/in/database.c:466:21: warning: statement with no effect [-Wunused-value]
for (p; p < db->tables[z].assignNum; p++) {
^~~
/in/database.c:480:21: warning: statement with no effect [-Wunused-value]
for (p; p < db->tables[z].assignNum; p++)
^~~
/in/database.c:501:25: warning: statement with no effect [-Wunused-value]
for (b; b < db->tables[z].assignNum; b++)
^~~
/in/database.c: In function 'SELECT':
/in/database.c:541:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (t = n; t < strlen(a); t++) {
^
/in/database.c:569:25: warning: statement with no effect [-Wunused-value]
for (m; m < db->tables[j].assignNum; m++) {
^~~
/in/database.c:584:25: warning: statement with no effect [-Wunused-value]
for (m; m < db->tables[j].assignNum; m++) {
^~~
/in/database.c:627:25: warning: statement with no effect [-Wunused-value]
for (m; m < db->tables[j].assignNum; m++) {
^~~
/in/database.c:642:25: warning: statement with no effect [-Wunused-value]
for (m; m < db->tables[j].assignNum; m++) {
^~~
/in/database.c: In function 'AUTO':
/in/database.c:689:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int q=n+1; q<strlen(token);q++)
^
/in/database.c:670:10: warning: unused variable 'save' [-Wunused-variable]
char save[360]={0};
^~~~
/in/database.c: In function 'main':
/in/database.c:762:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int q=n+1; q<strlen(query);q++)
^
/in/database.c:748:9: warning: unused variable 'x' [-Wunused-variable]
int x=0;
^