[ismrmrd] Fix nodiscard warning in meta.cpp (#42924)

This commit is contained in:
Cheney Wang
2024-12-31 02:09:24 +08:00
committed by GitHub
parent dbef60a908
commit 89b92ea059
5 changed files with 22 additions and 2 deletions

View 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) {

View File

@@ -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")

View File

@@ -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",

View File

@@ -3786,7 +3786,7 @@
},
"ismrmrd": {
"baseline": "1.14.1",
"port-version": 0
"port-version": 1
},
"itay-grudev-singleapplication": {
"baseline": "3.5.1",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e5e8f72ee1ce058b1efcac5f9e8be7bafe246fd0",
"version": "1.14.1",
"port-version": 1
},
{
"git-tree": "c903e7a9cc49e7395d37dc5e8587d6dd0196e65a",
"version": "1.14.1",