From 896f752d94498c45565513f0332f03558a11c5eb Mon Sep 17 00:00:00 2001 From: Sally Cochenour Date: Sun, 29 Mar 2020 08:39:15 -0400 Subject: [PATCH] Fix the compile errors I got - void out link variable in non-unix to prevent unused variable error - change n's type to size_t from int to prevent unsigned signed comparison --- src/sdl/i_main.c | 1 + src/sdl/i_system.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_main.c b/src/sdl/i_main.c index 816142d72..841997165 100644 --- a/src/sdl/i_main.c +++ b/src/sdl/i_main.c @@ -213,6 +213,7 @@ int main(int argc, char **argv) I_OutputMsg("Error symlinking latest-log.txt: %s\n", strerror(errno)); } #else/*__unix__*/ + (void)link; logstream = fopen("latest-log.txt", "wt+"); #endif/*__unix__*/ } diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 2ccdec5c4..73292d8e1 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -3282,7 +3282,7 @@ static void Shittylogcopy(void) { char buf[8192]; FILE *fp; - int n; + size_t n; if (fseek(logstream, 0, SEEK_SET) == -1) { Shittycopyerror("fseek");