@@ -296,11 +296,11 @@ class StackMachine {
296296
297297 case " COMMIT " :
298298 let transaction = try currentTransaction ( )
299- let success = try await transaction. commit ( )
299+ _ = try await transaction. commit ( )
300300 store ( idx, Array ( " COMMIT_RESULT " . utf8) )
301301
302302 case " RESET " :
303- if let transaction = transactionMap [ transactionName] as? FDBTransaction {
303+ if transactionMap [ transactionName] as? FDBTransaction != nil {
304304 try newTransaction ( )
305305 }
306306
@@ -329,8 +329,8 @@ class StackMachine {
329329 case " GET_RANGE " :
330330 // Python/Go order: begin, end, limit, reverse, mode (but Go pops in reverse)
331331 // Go pops: mode, reverse, limit, endKey, beginKey
332- let mode = waitAndPop ( ) . item as! Int64 // Streaming mode, ignore for now
333- let reverse = ( waitAndPop ( ) . item as! Int64 ) != 0
332+ _ = waitAndPop ( ) . item as! Int64 // Streaming mode, ignore for now
333+ _ = ( waitAndPop ( ) . item as! Int64 ) != 0
334334 let limit = Int ( waitAndPop ( ) . item as! Int64 )
335335 let endKey = waitAndPop ( ) . item as! [ UInt8 ]
336336 let beginKey = waitAndPop ( ) . item as! [ UInt8 ]
@@ -348,8 +348,8 @@ class StackMachine {
348348 case " GET_RANGE_STARTS_WITH " :
349349 // Python order: prefix, limit, reverse, mode (pops 4 parameters)
350350 // Go order: same but pops in reverse
351- let mode = waitAndPop ( ) . item as! Int64 // Streaming mode, ignore for now
352- let reverse = ( waitAndPop ( ) . item as! Int64 ) != 0
351+ _ = waitAndPop ( ) . item as! Int64 // Streaming mode, ignore for now
352+ _ = ( waitAndPop ( ) . item as! Int64 ) != 0
353353 let limit = Int ( waitAndPop ( ) . item as! Int64 )
354354 let prefix = waitAndPop ( ) . item as! [ UInt8 ]
355355 let transaction = try currentTransaction ( )
@@ -370,8 +370,8 @@ class StackMachine {
370370 // Python pops 10 parameters: begin_key, begin_or_equal, begin_offset, end_key, end_or_equal, end_offset, limit, reverse, mode, prefix
371371 // Go pops in reverse order
372372 let prefix = waitAndPop ( ) . item as! [ UInt8 ]
373- let mode = waitAndPop ( ) . item as! Int64 // Streaming mode, ignore for now
374- let reverse = ( waitAndPop ( ) . item as! Int64 ) != 0
373+ _ = waitAndPop ( ) . item as! Int64 // Streaming mode, ignore for now
374+ _ = ( waitAndPop ( ) . item as! Int64 ) != 0
375375 let limit = Int ( waitAndPop ( ) . item as! Int64 )
376376 let endOffset = Int ( waitAndPop ( ) . item as! Int64 )
377377 let endOrEqual = ( waitAndPop ( ) . item as! Int64 ) != 0
@@ -651,7 +651,7 @@ class StackMachine {
651651
652652 case " START_THREAD " :
653653 // Threading not supported in current implementation, just consume the instruction
654- let instruction = waitAndPop ( ) . item
654+ _ = waitAndPop ( ) . item
655655 // Could implement this with Task.detached in the future
656656
657657 case " WAIT_EMPTY " :
0 commit comments