projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9edc984
)
test_map_settings_manager: Fix Wunused-result warning
author
est31
<MTest31@outlook.com>
Wed, 3 Aug 2016 22:29:06 +0000
(
00:29
+0200)
committer
est31
<MTest31@outlook.com>
Wed, 3 Aug 2016 22:29:06 +0000
(
00:29
+0200)
src/unittest/test_map_settings_manager.cpp
patch
|
blob
|
history
diff --git
a/src/unittest/test_map_settings_manager.cpp
b/src/unittest/test_map_settings_manager.cpp
index b2ad531923881dc7df97c44fe61b93ac33acc4ca..597ec9a31c7c2f4dd0a5625a307e2d8466c88dcd 100644
(file)
--- 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;