Ava Chow
1189702d2f
Merge bitcoin/bitcoin#34982 : kernel: Remove NONNULL annotation from destroy method
...
75608547b4 kernel: Remove NONNULL annotation from destroy method (Alexander Wiederin)
Pull request description:
Follow-up to https://github.com/bitcoin/bitcoin/pull/33796#discussion_r2959817508
### Summary
This PR removes the `BITCOINKERNEL_ARG_NONNULL` annotation from the `btck_block_validation_state_destroy` method in the Kernel API.
### Motivation
No other *_destroy function in the Kernel API carries the NONNULL annotation. Following the convention set by free(), destroy functions should accept null pointers.
### Usage:
Before:
```c
btck_BlockValidationState* state = NULL;
btck_block_validation_state_destroy(state); // violates nonnull contract
```
After:
```c
btck_BlockValidationState* state = NULL;
btck_block_validation_state_destroy(state); // well-defined
```
ACKs for top commit:
yuvicc:
lgtm! ACK 75608547b4
kevkevinpal:
ACK [7560854 ](75608547b4 )
achow101:
ACK 75608547b4
janb84:
ACK 75608547b4
theStack:
ACK 75608547b4
w0xlt:
ACK 75608547b4
stickies-v:
ACK 75608547b4
Tree-SHA512: 9577098940f49b8f7fd1fb20afe750e9eaaf9d90d25ec3c4f423de223a1fbd0bca6d520061f576eb3923f18e1f2744b3f60d0d0715dfa3832fea83cb538170c2
2026-04-01 11:34:13 -07:00
..
2026-03-28 14:44:16 +08:00
2026-03-19 14:15:38 -07:00
2026-02-18 21:29:07 +01:00
2026-03-10 16:17:40 +01:00
2025-08-07 09:27:25 +01:00
2026-03-10 19:09:21 -07:00
2026-03-30 20:01:40 +08:00
2026-03-30 15:12:04 -07:00
2026-03-30 15:12:04 -07:00
2026-03-30 15:12:04 -07:00
2026-04-01 11:34:13 -07:00
2026-02-03 11:19:01 +01:00
2026-02-02 17:22:31 +00:00
2025-10-13 12:33:23 +01:00
2026-03-30 15:12:04 -07:00
2026-03-30 15:10:53 +01:00
2026-03-19 19:13:40 +00:00
2026-04-01 00:08:28 +08:00
2026-04-01 00:08:28 +08:00
2026-03-19 14:15:38 -07:00
2026-02-02 15:21:14 +00:00
2026-03-11 11:30:42 +01:00
2026-04-01 11:22:40 -07:00
2026-03-30 09:03:06 +02:00
2026-03-23 15:01:57 +10:00
2026-03-31 11:38:44 -07:00
2026-03-25 19:18:11 +10:00
2026-01-29 14:38:35 +00:00
2026-02-06 08:37:19 +01:00
2026-02-15 22:54:45 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-01-14 23:04:12 +01:00
2026-03-16 22:29:38 +01:00
2026-02-16 16:09:30 -03:00
2026-02-11 18:18:21 +01:00
2025-09-12 22:28:41 +02:00
2025-12-16 22:21:15 +01:00
2026-02-15 22:54:45 +01:00
2025-05-19 16:40:33 +01:00
2025-06-03 15:13:54 +02:00
2025-03-12 19:46:54 +01:00
2025-06-03 15:13:57 +02:00
2025-06-03 15:13:57 +02:00
2025-06-03 19:56:55 +02:00
2025-03-12 19:46:54 +01:00
2026-01-21 19:40:25 +05:30
2025-06-10 15:14:24 +02:00
2026-03-30 15:12:04 -07:00
2025-06-10 15:14:24 +02:00
2025-06-10 15:14:24 +02:00
2025-12-19 16:56:02 +00:00
2025-06-10 15:14:24 +02:00
2025-12-16 22:21:15 +01:00
2025-06-10 15:14:24 +02:00
2025-10-06 19:41:35 +01:00
2025-12-16 22:21:15 +01:00
2025-06-10 15:14:24 +02:00
2026-03-10 12:56:28 +00:00
2026-01-19 20:20:13 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-01-14 11:38:07 -08:00
2026-02-17 21:40:46 +05:30
2025-12-16 22:21:15 +01:00
2026-01-14 23:04:12 +01:00
2025-06-03 15:13:57 +02:00
2026-01-14 23:04:12 +01:00
2026-02-25 14:36:19 -08:00
2026-02-02 17:22:31 +00:00
2025-11-13 09:33:36 +01:00
2025-12-16 22:21:15 +01:00
2026-03-10 14:09:27 -04:00
2026-02-27 19:26:08 -04:00
2026-02-23 15:56:25 +01:00
2026-02-23 15:56:25 +01:00
2025-12-16 22:21:15 +01:00
2025-03-12 19:46:54 +01:00
2026-02-09 13:32:28 +00:00
2026-01-19 12:57:16 +01:00
2025-12-16 22:21:15 +01:00
2026-02-11 18:18:21 +01:00
2026-02-02 17:22:31 +00:00
2026-02-02 18:42:44 +01:00
2026-03-10 16:17:40 +01:00
2026-01-14 23:04:12 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-13 10:52:25 +01:00
2026-02-17 12:55:26 +01:00
2026-02-17 12:55:26 +01:00
2026-02-11 18:18:21 +01:00
2025-12-16 22:21:15 +01:00
2025-03-12 19:46:54 +01:00
2025-03-12 19:46:54 +01:00
2025-11-20 11:34:21 +09:00
2025-11-20 11:34:21 +09:00
2026-02-27 19:26:08 -04:00
2026-02-27 19:26:08 -04:00
2026-02-19 12:41:12 -08:00
2026-02-27 19:26:08 -04:00
2025-12-13 13:43:24 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-04-01 08:15:54 +08:00
2025-12-16 22:21:15 +01:00
2026-02-11 18:18:21 +01:00
2025-12-16 22:21:15 +01:00
2025-10-14 16:25:52 -04:00
2025-09-30 11:06:43 -07:00
2026-03-30 09:03:03 +02:00
2026-03-30 09:03:03 +02:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-02-11 18:18:21 +01:00
2025-12-16 22:21:15 +01:00
2025-11-24 18:48:43 +01:00
2025-11-24 18:48:43 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-03-20 07:12:22 +01:00
2026-03-20 15:37:51 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-03-26 11:38:14 -07:00
2026-03-11 16:11:45 +01:00
2025-10-02 12:53:55 +01:00
2026-01-14 23:04:12 +01:00
2026-03-10 21:15:19 +01:00
2026-03-10 21:15:19 +01:00
2026-01-20 23:59:41 +01:00
2026-01-20 23:59:41 +01:00
2025-12-16 22:21:15 +01:00
2026-01-14 19:39:01 +01:00
2026-01-14 19:36:14 +01:00
2025-10-02 12:53:55 +01:00
2025-10-02 12:53:55 +01:00
2025-12-16 22:21:15 +01:00
2026-01-14 23:04:12 +01:00
2026-03-04 15:06:34 +01:00
2026-02-11 19:46:12 -05:00
2026-03-20 15:37:51 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-03-13 09:02:09 +01:00
2026-03-04 15:17:02 +00:00
2025-09-30 11:06:09 -07:00
2025-11-03 14:39:48 +01:00
2026-02-02 17:22:31 +00:00
2026-01-14 23:04:12 +01:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-03-25 19:18:10 +10:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00
2026-03-20 15:37:51 +00:00
2025-05-10 03:31:30 +00:00
2026-03-19 19:13:40 +00:00
2026-02-02 17:22:31 +00:00
2025-12-21 10:24:09 +01:00
2025-03-12 19:46:54 +01:00
2025-11-14 01:17:38 +02:00
2026-02-07 23:01:17 +01:00
2026-03-23 15:13:45 +10:00
2026-03-20 15:37:51 +00:00
2026-03-20 15:37:44 +00:00
2026-02-19 12:08:10 +01:00
2026-02-19 12:08:10 +01:00
2026-02-08 08:23:37 +01:00
2026-01-02 16:49:23 -08:00
2026-02-24 10:08:47 -05:00
2026-02-24 10:08:47 -05:00
2026-03-11 14:34:42 +01:00
2026-03-11 18:49:42 -07:00
2025-12-18 22:38:02 +01:00
2025-12-30 12:12:26 -08:00
2025-12-16 22:21:15 +01:00
2025-11-03 14:39:48 +01:00
2025-12-16 22:21:15 +01:00
2026-03-24 14:58:05 -07:00
2026-03-24 15:51:23 +01:00
2026-03-18 13:34:26 +01:00
2026-03-18 13:34:26 +01:00
2025-12-16 22:21:15 +01:00
2025-12-19 16:56:02 +00:00
2025-12-16 22:21:15 +01:00
2025-12-16 22:21:15 +01:00