diff options
author | est31 <MTest31@outlook.com> | 2016-08-04 00:29:06 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2016-08-04 00:29:06 +0200 |
commit | 4ec667190967591727294ebbca0a38259fc006c7 (patch) | |
tree | 90ef293d56e0220c086009d4c153d16834cb50ca /src/unittest | |
parent | 9edc984b090ca585c0850fa05e0cecac86679638 (diff) | |
download | minetest-4ec667190967591727294ebbca0a38259fc006c7.tar.gz minetest-4ec667190967591727294ebbca0a38259fc006c7.tar.bz2 minetest-4ec667190967591727294ebbca0a38259fc006c7.zip |
test_map_settings_manager: Fix Wunused-result warning
Diffstat (limited to 'src/unittest')
-rw-r--r-- | src/unittest/test_map_settings_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |