From dd76422daa63dc19783d87640968fdf774e23579 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Wed, 23 Sep 2015 11:45:07 +0800 Subject: [PATCH] *avoid warnings. --- shell/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/main.c b/shell/main.c index db3511f..0a5842c 100755 --- a/shell/main.c +++ b/shell/main.c @@ -382,7 +382,7 @@ static char* _load_file(const char* path) { fseek(fp, curpos, SEEK_SET); result = (char*)malloc((size_t)(l + 1)); mb_assert(result); - fread(result, 1, l, fp); + (void)fread(result, 1, l, fp); fclose(fp); result[l] = '\0'; } @@ -415,9 +415,9 @@ static int _save_file(const char* path, const char* txt) { static void _clear_screen(void) { #ifdef _MSC_VER - system("cls"); + (void)system("cls"); #else /* _MSC_VER */ - system("clear"); + (void)system("clear"); #endif /* _MSC_VER */ }