[cpp-sp] 06/08: Remove unused variable name in catch()

Rod Widdowson rdw at steadingsoftware.com
Sat Dec 7 15:54:36 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=f818ef13d5cad80b49618281d9d36fca560e0d53

commit f818ef13d5cad80b49618281d9d36fca560e0d53
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sat Dec 7 15:25:10 2024 +0000

    Remove unused variable name in catch()
---
 shibsp/logging/impl/AbstractLoggingService.cpp | 4 ++--
 shibsp/util/ReloadableXMLFile.cpp              | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/shibsp/logging/impl/AbstractLoggingService.cpp b/shibsp/logging/impl/AbstractLoggingService.cpp
index 43b0b875..3531c9bf 100644
--- a/shibsp/logging/impl/AbstractLoggingService.cpp
+++ b/shibsp/logging/impl/AbstractLoggingService.cpp
@@ -83,7 +83,7 @@ bool AbstractLoggingService::init()
 
     try {
         m_defaultPriority = Priority::getPriorityValue(m_config.get(DEFAULT_LEVEL_PROP_PATH, "INFO"));
-    } catch (const invalid_argument& e) {
+    } catch (const invalid_argument&) {
         m_defaultPriority = Priority::PriorityLevel::SHIB_INFO;
     }
 
@@ -93,7 +93,7 @@ bool AbstractLoggingService::init()
             try {
                 m_priorityMap.insert({mapping.first,
                     Priority::getPriorityValue(mapping.second.get_value("INFO"))});
-            } catch (const invalid_argument& e) {
+            } catch (const invalid_argument&) {
             }
         }
     }
diff --git a/shibsp/util/ReloadableXMLFile.cpp b/shibsp/util/ReloadableXMLFile.cpp
index 2f0bc1a9..93e1980c 100644
--- a/shibsp/util/ReloadableXMLFile.cpp
+++ b/shibsp/util/ReloadableXMLFile.cpp
@@ -141,7 +141,7 @@ pair<bool,ptree*> ReloadableXMLFile::load() noexcept
         }
 
         return make_pair(true, newtree.release());
-    } catch (const bad_alloc& e) {
+    } catch (const bad_alloc&) {
         m_log.crit("out of memory parsing XML configuration (%s)", m_source.c_str());
     } catch (const xml_parser_error& e) {
         m_log.error("failed to process XML configuration: %s", e.what());

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list