Naja. Fast. 

Code:
obi@fedora:~/BrightEyes Entwicklung/BrightEyes/src/gen$ make
clang -O0 -g -fno-asm -c g105de_seg001.c
clang -O0 -g -fno-asm -c g105de_seg002.c
g105de_seg002.c:52:10: warning: the current #pragma pack alignment value is modified in the included file [-Wpragma-pack]
52 | #include "hero.h"
| ^
./hero.h:15:9: note: previous '#pragma pack' directive that modifies alignment is here
15 | #pragma pack ( 1 )
| ^
g105de_seg002.c:2115:25: warning: if statement has empty body [-Wempty-body]
2115 | if (g_have_mouse == 0);
| ^
g105de_seg002.c:2115:25: note: put the semicolon on a separate line to silence this warning
g105de_seg002.c:3919:22: warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs]
3919 | va_start(arguments, options);
| ^
g105de_seg002.c:3850:50: note: parameter of type 'signed char' is declared here
3850 | signed short gui_radio(char *header, signed char options, ...)
| ^
g105de_seg002.c:7076:14: warning: passing 'unsigned char *' to parameter of type 'signed char *' converts between pointers to integer types with different sign [-Wpointer-sign]
7076 | set_palette(g_buffer_heads_dat + flen - 32 * 3, 0, 32);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./g105de_seg005.h:5:30: note: passing argument to parameter here
5 | void set_palette(signed char*, unsigned char, unsigned short);
| ^
4 warnings generated.
clang -O0 -g -fno-asm -c g105de_seg003.c
clang -O0 -g -fno-asm -c g105de_seg004.c
clang -O0 -g -fno-asm -c g105de_seg005.c
g105de_seg005.c:32:4: error: call to undeclared library function 'fprintf' with type 'int (FILE *restrict, const char *restrict, ...)' (aka 'int (struct _IO_FILE *restrict, const char *restrict, ...)'); ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
32 | fprintf(stderr, "Could not initialize SDL: %s\n", SDL_GetError());
| ^
g105de_seg005.c:32:4: note: include the header <stdio.h> or explicitly provide a declaration for 'fprintf'
g105de_seg005.c:32:12: error: use of undeclared identifier 'stderr'
32 | fprintf(stderr, "Could not initialize SDL: %s\n", SDL_GetError());
| ^
g105de_seg005.c:42:4: error: use of undeclared identifier 'SDL_WINDOW_SHOWN'
42 | SDL_WINDOW_SHOWN
| ^
g105de_seg005.c:46:12: error: use of undeclared identifier 'stderr'
46 | fprintf(stderr, "Could not create Window: %s\n", SDL_GetError());
| ^
g105de_seg005.c:54:4: error: use of undeclared identifier 'SDL_RENDERER_ACCELERATED'
54 | SDL_RENDERER_ACCELERATED
| ^
g105de_seg005.c:31:32: warning: result of comparison of constant 0 with expression of type 'bool' is always false [-Wtautological-constant-compare]
31 | if (SDL_Init(SDL_INIT_VIDEO) < 0) {
| ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
g105de_seg005.c:81:21: error: use of undeclared identifier 'SDL_QUIT_renamed_SDL_EVENT_QUIT'
81 | if (event.type == SDL_QUIT) {
| ^
/usr/include/SDL3/SDL_oldnames.h:791:18: note: expanded from macro 'SDL_QUIT'
791 | #define SDL_QUIT SDL_QUIT_renamed_SDL_EVENT_QUIT
| ^
g105de_seg005.c:97:2: error: call to undeclared function 'SDL_RenderCopy_renamed_SDL_RenderTexture'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
97 | SDL_RenderCopy(renderer, texture, NULL, NULL);
| ^
/usr/include/SDL3/SDL_oldnames.h:1150:24: note: expanded from macro 'SDL_RenderCopy'
1150 | #define SDL_RenderCopy SDL_RenderCopy_renamed_SDL_RenderTexture
| ^
1 warning and 7 errors generated.
make: *** [Makefile:23: g105de_seg005.o] Fehler 1
--------
Warnung! Geschichte kann zu Einsichten führen und verursacht Bewusstsein!
Avatar by: Keven Law (CC BY-SA 2.0)
Warnung! Geschichte kann zu Einsichten führen und verursacht Bewusstsein!
Avatar by: Keven Law (CC BY-SA 2.0)