mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[ismrmrd] Fix nodiscard warning in meta.cpp (#42924)
This commit is contained in:
13
ports/ismrmrd/fix-nodiscard-warning.patch
Normal file
13
ports/ismrmrd/fix-nodiscard-warning.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/libsrc/meta.cpp b/libsrc/meta.cpp
|
||||
index 9cc8cc9..69fce79 100644
|
||||
--- a/libsrc/meta.cpp
|
||||
+++ b/libsrc/meta.cpp
|
||||
@@ -23,7 +23,7 @@ namespace ISMRMRD {
|
||||
pugi::xml_node value = meta.child("value");
|
||||
|
||||
if (!name || !value) {
|
||||
- std::runtime_error("Malformed metadata value");
|
||||
+ throw std::runtime_error("Malformed metadata value");
|
||||
}
|
||||
|
||||
while (value) {
|
||||
@@ -11,6 +11,7 @@ vcpkg_from_github(
|
||||
PATCHES
|
||||
${WIN32_INCLUDE_STDDEF_PATCH}
|
||||
fix-depends-hdf5.patch
|
||||
fix-nodiscard-warning.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
@@ -47,4 +48,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/")
|
||||
endif()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "ismrmrd",
|
||||
"version": "1.14.1",
|
||||
"port-version": 1,
|
||||
"description": "ISMRM Raw Data Format",
|
||||
"homepage": "https://github.com/ismrmrd/ismrmrd",
|
||||
"license": "BSD-3-Clause",
|
||||
|
||||
@@ -3786,7 +3786,7 @@
|
||||
},
|
||||
"ismrmrd": {
|
||||
"baseline": "1.14.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"itay-grudev-singleapplication": {
|
||||
"baseline": "3.5.1",
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e5e8f72ee1ce058b1efcac5f9e8be7bafe246fd0",
|
||||
"version": "1.14.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "c903e7a9cc49e7395d37dc5e8587d6dd0196e65a",
|
||||
"version": "1.14.1",
|
||||
|
||||
Reference in New Issue
Block a user