From a14ccd825e178f60623999318a16000720cfafac Mon Sep 17 00:00:00 2001 From: shatty Date: Sun, 21 Nov 2004 18:29:56 +0000 Subject: [PATCH] address compiler warning git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10123 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/keymap/Keymap.cpp | 2 +- src/tests/servers/input/comm/area.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/bin/keymap/Keymap.cpp b/src/apps/bin/keymap/Keymap.cpp index cb32c625d6..ae65568daf 100644 --- a/src/apps/bin/keymap/Keymap.cpp +++ b/src/apps/bin/keymap/Keymap.cpp @@ -267,7 +267,7 @@ Keymap::Load(entry_ref &ref) if (!fChars) delete[] fChars; fChars = new char[fCharsSize]; - if (file.Read(fChars, fCharsSize) != fCharsSize) + if ((unsigned)file.Read(fChars, fCharsSize) != fCharsSize) return B_BAD_VALUE; return B_OK; diff --git a/src/tests/servers/input/comm/area.c b/src/tests/servers/input/comm/area.c index fdcc1f5f25..68e753ecd2 100644 --- a/src/tests/servers/input/comm/area.c +++ b/src/tests/servers/input/comm/area.c @@ -22,4 +22,6 @@ int main(int count, char **args) { delete_area(newArea); } + + return 0; }