Project

General

Profile

Actions

Optimization #4711

closed

Clang 14 and rust nightly new warnings

Added by Philippe Antoine over 2 years ago. Updated over 2 years ago.

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

Description

warning: field is never read: `position`
  --> /src/suricata/rust/src/jsonbuilder.rs:83:5
   |
83 |     position: usize,
   |     ^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: field is never read: `state_index`
  --> /src/suricata/rust/src/jsonbuilder.rs:84:5
   |
84 |     state_index: usize,
   |     ^^^^^^^^^^^^^^^^^^

warning: field is never read: `state`
  --> /src/suricata/rust/src/jsonbuilder.rs:85:5
   |
85 |     state: State,
   |     ^^^^^^^^^^^^

warning: field is never read: `file_size`
  --> /src/suricata/rust/src/filetracker.rs:54:5
   |
54 |     file_size: u64,
   |     ^^^^^^^^^^^^^^
detect-engine-build.c:632:14: warning: variable 'mpms_total' set but not used [-Wunused-but-set-variable]
    uint32_t mpms_total = 0;
             ^
detect-engine-analyzer.c:1319:14: warning: variable 'rule_flowint' set but not used [-Wunused-but-set-variable]
    uint32_t rule_flowint = 0;

flow-manager.c:809:14: warning: variable 'hash_row_checks' set but not used [-Wunused-but-set-variable]
    uint32_t hash_row_checks = 0;
             ^
flow-manager.c:810:14: warning: variable 'hash_passes_chunks' set but not used [-Wunused-but-set-variable]
    uint32_t hash_passes_chunks = 0;
             ^
Actions #2

Updated by Philippe Antoine over 2 years ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF