Commit 37306a1c authored by Brad King's avatar Brad King

FStream: Quiet unused argument warning

On MSVC we get

    FStream.hxx(149): warning C4100: 'efilebuf' : unreferenced formal parameter

Quiet the warning by casting the argument to `void`.

Change-Id: Ife2e2301b95864b0ae4c8bafe21e8c989110d635
parent b630d2f5
......@@ -150,6 +150,8 @@ namespace @KWSYS_NAMESPACE@
{
#if !defined(_MSC_VER)
ios->rdbuf(efilebuf->buf_);
#else
static_cast<void>(efilebuf);
#endif
if (!success) {
ios->setstate(std::ios_base::failbit);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment