Implement senf::IGNORE and replace all casts-to-void with senf::IGNORE() calls
[senf.git] / senf / Utils / Buffer.test.cc
index 3a66891..196a469 100644 (file)
 
 // Custom includes
 #include "Buffer.hh"
+#include "IgnoreValue.hh"
 
 #include <senf/Utils/auto_unit_test.hh>
 #include <boost/test/test_tools.hpp>
+#include "senf/Utils/IgnoreValue.hh"
 
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
@@ -41,8 +43,8 @@ SENF_AUTO_UNIT_TEST(buffer)
 
     // Just check for compile errors, the rest can't be checked
     SENF_SCOPED_BUFFER(char, buf, size);
-    (void) buf;
-    
+    senf::IGNORE( buf );
+
     BOOST_CHECK( true );
 }