diff --git a/src/buttons.c b/src/buttons.c index 7fc52776..260c0037 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -32,7 +32,11 @@ #include #endif +// On Debian, this is already implied in dirent.h +// I don't know which targets need it and what it does. - yr +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 500 +#endif #include #include @@ -5533,4 +5537,4 @@ void Button_Brush_container(void) byte Any_effect_active(void) { return Shade_mode||Quick_shade_mode||Colorize_mode||Smooth_mode||Tiling_mode||Smear_mode||Stencil_mode||Mask_mode||Sieve_mode||Snap_mode||Main_tilemap_mode; -} \ No newline at end of file +} diff --git a/src/main.c b/src/main.c index 310b3f8b..3e0359ef 100644 --- a/src/main.c +++ b/src/main.c @@ -378,9 +378,7 @@ int Analyze_command_line(int argc, char * argv[], char *main_filename, char *mai else if (File_exists(argv[index])) { file_in_command_line ++; - printf("PATH RESOLVE %s\n", argv[index]); buffer = Realpath(argv[index], NULL); - printf("returns : %p\n", buffer); if (file_in_command_line == 1) { diff --git a/src/miscfileformats.c b/src/miscfileformats.c index 8c4a6c2f..258c026a 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -2963,7 +2963,7 @@ void Load_CM5(T_IO_Context* context) FILE *file; char filename[MAX_PATH_CHARACTERS]; byte value = 0; - int mod; + int mod=0; short line = 0; int tx, ty; byte buffer[48*6/4]; diff --git a/src/oldies.c b/src/oldies.c index 6134205f..d78f098d 100644 --- a/src/oldies.c +++ b/src/oldies.c @@ -408,4 +408,4 @@ byte C64_FLI_enforcer(void) return 0; -} \ No newline at end of file +}