From 75608547b469b72caa890c8b356d0d3284998701 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. --- 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 fe5bc3f91b5..a71a4de17c2 100644 --- a/src/kernel/bitcoinkernel.h +++ b/src/kernel/bitcoinkernel.h @@ -1344,7 +1344,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); ///@}