From 37306a1c73e991e239f32bfc8eda98ba2d1c149a Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Thu, 3 Nov 2016 15:52:13 -0400
Subject: [PATCH] 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
---
 FStream.hxx.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/FStream.hxx.in b/FStream.hxx.in
index 5471247d..a9ff972a 100644
--- a/FStream.hxx.in
+++ b/FStream.hxx.in
@@ -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);
-- 
GitLab