From f0e1014c396c80cc946beff719af04ebfd482f82 Mon Sep 17 00:00:00 2001 From: Alexander Wiederin Date: Wed, 1 Apr 2026 13:23:54 +0200 Subject: [PATCH] kernel: Remove NONNULL annotation from destroy method No other *_destroy function in the Kernel API carries this annotation. Following the convention set by free(), destroy functions should accept null pointers. Github-Pull: #34982 Rebased-From: 75608547b469b72caa890c8b356d0d3284998701 --- src/kernel/bitcoinkernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/bitcoinkernel.h b/src/kernel/bitcoinkernel.h index 5427e776177..00bab4a0f9d 100644 --- a/src/kernel/bitcoinkernel.h +++ b/src/kernel/bitcoinkernel.h @@ -1333,7 +1333,7 @@ BITCOINKERNEL_API btck_BlockValidationState* BITCOINKERNEL_WARN_UNUSED_RESULT bt * Destroy the btck_BlockValidationState. */ BITCOINKERNEL_API void btck_block_validation_state_destroy( - btck_BlockValidationState* block_validation_state) BITCOINKERNEL_ARG_NONNULL(1); + btck_BlockValidationState* block_validation_state); ///@}