Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warnings in libtiptoi.c and gameanalyse.c when compiling with gcc…
… 5.3.1: gcc -g -o libtiptoi libtiptoi.c libtiptoi.c: In function ‘readFile’: libtiptoi.c:140:22: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] gme->audioFileTable = &gme->data[gme->audioFileTableOffset]; ^ libtiptoi.c:147:17: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] gme->mainTable = &gme->data[gme->mainTableOffset]; ^ libtiptoi.c: In function ‘printInformation’: libtiptoi.c:493:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] gjt = &gme->data[gme->mainTable->codeTable[i - gme->mainTable->firstOIDCode]+2]; ^ gcc -g -o gameanalyse gameanalyse.c gameanalyse.c: In function ‘parse_game’: gameanalyse.c:447:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^ gameanalyse.c:468:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^ gameanalyse.c:488:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^ gameanalyse.c:662:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^ gameanalyse.c:680:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^ gameanalyse.c:698:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^ gameanalyse.c:716:9: warning: too many arguments for format [-Wformat-extra-args] printf("\n", type); ^
- Loading branch information