Project

General

Profile

Actions

Bug #4540

closed

unused variables warnings on Windows compiles with rust

Added by Peter Manev almost 3 years ago. Updated almost 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 #1

Updated by Victor Julien almost 3 years ago

  • Status changed from New to Closed
  • Assignee set to Sascha Steinbiss
  • Target version set to 7.0.0-beta1

https://github.com/OISF/suricata/commit/d541b3d4a8de5fab7333290487ae33f4167058dc

I believe this has also been fixed in 5.0.7 and 6.0.3

Actions

Also available in: Atom PDF