From 40ed1101363af0c01cd26961e23f06bf3104d6e5 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Tue, 20 Mar 2012 05:47:55 +0000 Subject: Explicitly ignore fwrite result - nothing else can be done with the current writer interface, unfortunately git-svn-id: http://pugixml.googlecode.com/svn/trunk@866 99668b35-9821-0410-8761-19e4c4f06640 --- src/pugixml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); + size_t result = fwrite(data, 1, size, static_cast(file)); + (void)!result; // unfortunately we can't do proper error handling here } #ifndef PUGIXML_NO_STL -- cgit v1.2.3