Skip to content

Commit fb86412

Browse files
hyperpolymathclaude
andcommitted
fix(ffi/zig): discard bool return from generateQuicKeypair in tests
Zig 0.15.2 requires explicit discard of non-void return values. Two test functions called generateQuicKeypair() without using its bool result — fixed by assigning to `_`. 219/219 tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 00bcc60 commit fb86412

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ffi/zig/src/federation.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@ test "umoja discover_udp validates inputs" {
29202920
test "quic keypair generation" {
29212921
_ = boj_federation_init();
29222922

2923-
generateQuicKeypair();
2923+
_ = generateQuicKeypair();
29242924
try std.testing.expect(quic_keypair_valid);
29252925

29262926
// Public key should not be all zeros.
@@ -3159,7 +3159,7 @@ test "quic federation init resets sessions" {
31593159
_ = boj_federation_init();
31603160

31613161
// Set up some QUIC state.
3162-
generateQuicKeypair();
3162+
_ = generateQuicKeypair();
31633163
transport_mode = .quic;
31643164
quic_sessions[0].established = true;
31653165

0 commit comments

Comments
 (0)