пойми что?
In file included from main.c:5: ./include/string.h: In function 'memmove': ./include/string.h:16:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 16 | char *lasts = s + (len-1); | ^ main.c: In function 'terminal_putchar': main.c:123:25: warning: implicit declaration of function 'terminal_scroll'; did you mean 'terminal_clear'? [-Wimplicit-function-declaration] 123 | terminal_scroll(); | ^~~~~~~~~~~~~~~ | terminal_clear main.c:124:45: warning: passing argument 1 of 'terminal_putentryat' makes integer from pointer without a cast [-Wint-conversion] 124 | terminal_putentryat("P", VGA_COLOR_GREEN, 79, 24); | ^~~ | | | char * main.c:109:31: note: expected 'char' but argument is of type 'char *' 109 | void terminal_putentryat(char c, uint8_t color, size_t x, size_t y) | ~~~~~^ main.c: At top level: main.c:133:6: warning: conflicting types for 'terminal_scroll'; have 'void()' 133 | void terminal_scroll() | ^~~~~~~~~~~~~~~ main.c:123:25: note: previous implicit declaration of 'terminal_scroll' with type 'void()' 123 | terminal_scroll(); | ^~~~~~~~~~~~~~~ main.c: In function 'kernel_main': main.c:267:25: warning: passing argument 2 of 'itoa' makes pointer from integer without a cast [-Wint-conversion] 267 | itoa(x, num); | ^~~ | | | char main.c:203:23: note: expected 'char *' but argument is of type 'char' 203 | void itoa(int n, char s[]) | ~~~~~^~~ main.c:268:38: warning: passing argument 1 of 'terminal_writestring' makes pointer from integer without a cast [-Wint-conversion] 268 | terminal_writestring(num); | ^~~ | | | char main.c:157:39: note: expected 'const char *' but argument is of type 'char' 157 | void terminal_writestring(const char *data) | ~~~~~~~~~~~~^~~~ main.c:267:17: warning: 'num' may be used uninitialized [-Wmaybe-uninitialized] 267 | itoa(x, num); | ^~~~~~~~~~~~ main.c:264:31: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] 264 | for (int x; x <= 10; x++) | ~^~ Не вижу вроде бы
Обсуждают сегодня