test_map_settings_manager: Fix Wunused-result warning
authorest31 <MTest31@outlook.com>
Wed, 3 Aug 2016 22:29:06 +0000 (00:29 +0200)
committerest31 <MTest31@outlook.com>
Wed, 3 Aug 2016 22:29:06 +0000 (00:29 +0200)
src/unittest/test_map_settings_manager.cpp

index b2ad531923881dc7df97c44fe61b93ac33acc4ca..597ec9a31c7c2f4dd0a5625a307e2d8466c88dcd 100644 (file)
@@ -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;