From 94f5ec8344923e0bfaab04b18ce69d6c697a3e18 Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Sat, 23 May 2026 18:00:39 +0200 Subject: [PATCH 1/2] Fix compile warning with GCC 16.1 --- qsp/memwatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsp/memwatch.c b/qsp/memwatch.c index 6e2f54bb..e304c130 100644 --- a/qsp/memwatch.c +++ b/qsp/memwatch.c @@ -1749,7 +1749,7 @@ static int mwRelink( mwData* mw, const char* file, int line ) { if( mw1->next ) { if( !mwIsReadAddr(mw1->next,mwDataSize) || - !mw1->next->check != CHKVAL(mw1) || + (!mw1->next->check) != CHKVAL(mw1) || mw1->next->prev != mw1 ) { mwWrite("relink: forward chain's last intact MW is MW-%p, %ld %sbytes at %s(%d)\n", @@ -1791,7 +1791,7 @@ static int mwRelink( mwData* mw, const char* file, int line ) { if( mw2->prev ) { if( !mwIsReadAddr(mw2->prev,mwDataSize) || - !mw2->prev->check != CHKVAL(mw2) || + (!mw2->prev->check) != CHKVAL(mw2) || mw2->prev->next != mw2 ) { mwWrite("relink: reverse chain's last intact MW is MW-%p, %ld %sbytes at %s(%d)\n", From afcf45b2a917f0269b56104100fedcfdbabfe253 Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Sat, 23 May 2026 18:01:05 +0200 Subject: [PATCH 2/2] Allow to use CMake package from the build tree The QspTargets.cmake file needs to be in the same directory as the QspConfig.cmake, which references the former. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b20c2ba2..e65ec4f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,7 @@ if (TARGET onig) endif() install(TARGETS ${QSP_INSTALL_TARGETS} EXPORT QspTargets) -export(TARGETS ${QSP_INSTALL_TARGETS} NAMESPACE Qsp:: FILE "${CMAKE_CURRENT_BINARY_DIR}/QspTargets.cmake") +export(TARGETS ${QSP_INSTALL_TARGETS} NAMESPACE Qsp:: FILE "${CMAKE_CURRENT_BINARY_DIR}/cmake/Qsp/QspTargets.cmake") install(FILES qsp/bindings/qsp.h