From 4ec667190967591727294ebbca0a38259fc006c7 Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 4 Aug 2016 00:29:06 +0200 Subject: [PATCH] test_map_settings_manager: Fix Wunused-result warning --- src/unittest/test_map_settings_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1