forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #448 from microsoft/master
[cppmicroservices] Fix warning C4834 (microsoft#15177)
- Loading branch information
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
Source: cppmicroservices | ||
Version: 3.4.0-1 | ||
Version: 3.4.0 | ||
Port-Version: 2 | ||
Homepage: https://github.com/CppMicroServices/CppMicroServices | ||
Description: An OSGi-like C++ dynamic module system and service registry | ||
Build-Depends: gtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/httpservice/src/ServletContainer.cpp b/httpservice/src/ServletContainer.cpp | ||
index b4af8c9..8713066 100644 | ||
--- a/httpservice/src/ServletContainer.cpp | ||
+++ b/httpservice/src/ServletContainer.cpp | ||
@@ -279,7 +279,9 @@ void ServletContainer::SetContextPath(const std::string& path) | ||
|
||
std::string ServletContainer::GetContextPath() const | ||
{ | ||
- return Lock(d->m_Mutex), d->m_ContextPath; | ||
+ Lock l(d->m_Mutex); | ||
+ US_UNUSED(l); | ||
+ return d->m_ContextPath; | ||
} | ||
|
||
void ServletContainer::Start() | ||
@@ -306,6 +308,8 @@ std::shared_ptr<ServletContext> ServletContainer::GetContext( | ||
std::string ServletContainer::GetContextPath( | ||
const ServletContext* /*context*/) const | ||
{ | ||
- return Lock(d->m_Mutex), d->m_ContextPath; | ||
+ Lock l(d->m_Mutex); | ||
+ US_UNUSED(l); | ||
+ return d->m_ContextPath; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters