summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 5193e68..315dfa8 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -3566,7 +3566,8 @@ namespace pugi
PUGI__FN void xml_writer_file::write(const void* data, size_t size)
{
- fwrite(data, size, 1, static_cast<FILE*>(file));
+ size_t result = fwrite(data, 1, size, static_cast<FILE*>(file));
+ (void)!result; // unfortunately we can't do proper error handling here
}
#ifndef PUGIXML_NO_STL