Project

General

Profile

Actions

Bug #4540

closed

unused variables warnings on Windows compiles with rust

Added by Peter Manev over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

   Compiling kerberos-parser v0.5.0
   Compiling sawp-modbus v0.5.0
   Compiling tls-parser v0.9.4
   Compiling suricata v7.0.0-dev (C:\msys64\home\Administrator\suricata\rust)
warning: unused variable: `base_o`
  --> src\kerberos.rs:65:9
   |
65 |         base_o: parse_der_oid >>
   |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_o`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `tok_id`
  --> src\kerberos.rs:66:9
   |
66 |         tok_id: le_u16 >>
   |         ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tok_id`

warning: 2 warnings emitted

    Finished release [optimized + debuginfo] target(s) in 4m 43s
if test -e ../rust/target/release/suricata_rust.lib; then \
        cp ../rust/target/release/suricata_rust.lib \
                ../rust/target/release/libsuricata_rust.a; \

Actions

Also available in: Atom PDF