diff options
| author | Cheney Wang <38240633+Cheney-W@users.noreply.github.com> | 2020-12-18 13:20:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-17 21:20:39 -0800 |
| commit | fe5852514a5cf82a3fadec6b9458caf134c451f1 (patch) | |
| tree | ef8aff6012279b85657bab82180212d92b343937 /ports/cppmicroservices/fix-warning-c4834.patch | |
| parent | ce5d30cb96f50d643a6a2c8dd5990e1d9b73323f (diff) | |
| download | vcpkg-fe5852514a5cf82a3fadec6b9458caf134c451f1.tar.gz vcpkg-fe5852514a5cf82a3fadec6b9458caf134c451f1.zip | |
[cppmicroservices] Fix warning C4834 (#15177)
Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
Diffstat (limited to 'ports/cppmicroservices/fix-warning-c4834.patch')
| -rw-r--r-- | ports/cppmicroservices/fix-warning-c4834.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/cppmicroservices/fix-warning-c4834.patch b/ports/cppmicroservices/fix-warning-c4834.patch new file mode 100644 index 000000000..893b28d30 --- /dev/null +++ b/ports/cppmicroservices/fix-warning-c4834.patch @@ -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;
+ }
+ }
|
