From f32eacaa01c91333946a08b0d56ab4e21117df90 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 2 Mar 2018 00:28:11 +0100 Subject: [PATCH] Make compilers happy, remove warnings... unsigned/signed comparaison in miscfileformat.c unused argument in readline.c --- src/miscfileformats.c | 4 ++-- src/readline.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/miscfileformats.c b/src/miscfileformats.c index d9f8a48a..114f4292 100644 --- a/src/miscfileformats.c +++ b/src/miscfileformats.c @@ -3436,9 +3436,9 @@ void Test_PPH(T_IO_Context * context) { FILE *file; byte buffer[6]; - long file_size; + unsigned long file_size; unsigned int w, h; - int expected; + unsigned int expected; File_error = 1; diff --git a/src/readline.c b/src/readline.c index 0927c64b..654be3e2 100644 --- a/src/readline.c +++ b/src/readline.c @@ -405,6 +405,8 @@ bye: return haiku_get_clipboard(); #else // Not implemented (no standard) on Linux systems. Maybe someday... + if (unicode) + *unicode = NULL; return NULL; #endif }