diff options
Diffstat (limited to 'ports/cppmicroservices')
| -rw-r--r-- | ports/cppmicroservices/CONTROL | 3 | ||||
| -rw-r--r-- | ports/cppmicroservices/fix-warning-c4834.patch | 25 | ||||
| -rw-r--r-- | ports/cppmicroservices/portfile.cmake | 2 |
3 files changed, 28 insertions, 2 deletions
diff --git a/ports/cppmicroservices/CONTROL b/ports/cppmicroservices/CONTROL index 91748199f..2db76b91d 100644 --- a/ports/cppmicroservices/CONTROL +++ b/ports/cppmicroservices/CONTROL @@ -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
\ No newline at end of file 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;
+ }
+ }
diff --git a/ports/cppmicroservices/portfile.cmake b/ports/cppmicroservices/portfile.cmake index 47df1e14e..47c209a87 100644 --- a/ports/cppmicroservices/portfile.cmake +++ b/ports/cppmicroservices/portfile.cmake @@ -7,6 +7,7 @@ vcpkg_from_github( PATCHES werror.patch fix-dependency-gtest.patch + fix-warning-c4834.patch ) vcpkg_configure_cmake( @@ -22,7 +23,6 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) - vcpkg_fixup_cmake_targets() # Handle copyright |
