[Spice-devel] [vdagent-win PATCH 04/13] Avoid unused variable warning

Frediano Ziglio fziglio at redhat.com
Mon May 28 08:57:57 UTC 2018


Currently happens using Visual Studio 2015.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 vdagent/display_configuration.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vdagent/display_configuration.cpp b/vdagent/display_configuration.cpp
index 6e7624b..cdbbe23 100644
--- a/vdagent/display_configuration.cpp
+++ b/vdagent/display_configuration.cpp
@@ -259,7 +259,7 @@ DisplayConfig* DisplayConfig::create_config()
     try {
         new_interface = new  WDDMInterface();
     }
-    catch (std::exception& e) {
+    catch (std::exception&) {
         new_interface = new XPDMInterface();
     }
     return new_interface;
-- 
2.17.0



More information about the Spice-devel mailing list