Commit 3f21355
committed
Fix: Resolve linker error and compiler warning
This commit addresses a linker error and a compiler warning that appeared in previous builds:
1. **Linker Error for `gs_font_print`**:
- I resolved an "undefined reference to `gs_font_print`" linker error.
- The call to `gs_font_print` recently added to the `error_message` function in `main.c` (for displaying numerical error codes) was removed.
- This was necessary because the `gs_font_print` function is not defined in `gs.c` or linked from an external library in this project.
- While this removes the on-screen display of numerical error codes, it allows the program to compile and link successfully.
2. **Compiler Warning for `mcport`**:
- I addressed a warning in `main.c` stating that "`mcport` might be used uninitialized".
- `mcport` is now initialized to `0` at its declaration in the `main` function. This ensures it always has a defined value before use, silencing the warning.
These changes should allow the project to compile and link cleanly, enabling further testing of the runtime installation behavior.1 parent 87200f1 commit 3f21355
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | | - | |
| 1090 | + | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
1100 | 1098 | | |
1101 | 1099 | | |
1102 | 1100 | | |
| |||
1129 | 1127 | | |
1130 | 1128 | | |
1131 | 1129 | | |
1132 | | - | |
| 1130 | + | |
1133 | 1131 | | |
1134 | 1132 | | |
1135 | 1133 | | |
| |||
0 commit comments