From: est31 Date: Wed, 3 Aug 2016 22:29:06 +0000 (+0200) Subject: test_map_settings_manager: Fix Wunused-result warning X-Git-Tag: 0.4.15~294 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4ec667190967591727294ebbca0a38259fc006c7;p=oweals%2Fminetest.git test_map_settings_manager: Fix Wunused-result warning --- diff --git a/src/unittest/test_map_settings_manager.cpp b/src/unittest/test_map_settings_manager.cpp index b2ad53192..597ec9a31 100644 --- a/src/unittest/test_map_settings_manager.cpp +++ b/src/unittest/test_map_settings_manager.cpp @@ -81,7 +81,7 @@ std::string read_file_to_string(const std::string &filepath) buf.resize(filesize); - fread(&buf[0], 1, filesize, f); + UASSERTEQ(size_t, fread(&buf[0], 1, filesize, f), 1); fclose(f); return buf;