From 76383752827426de2188cb1707f5bf65893be37d Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 9 Feb 2011 21:56:10 +0000 Subject: [PATCH] Get rid of a few unused variable warnings. Originally committed to SVN as r5333. --- aegisub/libaegisub/common/path.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/libaegisub/common/path.cpp b/aegisub/libaegisub/common/path.cpp index 7f461943f..5f65ea95a 100644 --- a/aegisub/libaegisub/common/path.cpp +++ b/aegisub/libaegisub/common/path.cpp @@ -46,7 +46,7 @@ const std::string Path::Get(const char *name) { std::string path; try { path = std::string(opt->Get(name)->GetString()); - } catch (OptionErrorNotFound& e) { + } catch (OptionErrorNotFound&) { throw PathErrorNotFound("Invalid path key"); } @@ -67,7 +67,7 @@ void Path::Set(const char *name, const std::string &path) { try { opt->Get(name)->SetString(set); - } catch (OptionErrorNotFound& e) { + } catch (OptionErrorNotFound&) { throw PathErrorNotFound("Invalid path key"); } @@ -136,7 +136,7 @@ void Path::Decode(std::string &path) { throw PathErrorInvalid("Invalid cookie used"); - } catch (OptionErrorNotFound& e) { + } catch (OptionErrorNotFound&) { throw PathErrorInternal("Failed to find key in Decode"); } }