Project

General

Profile

Actions

Bug #7652

open

rust: warnings with rustc 1.86

Added by Victor Julien 10 days ago. Updated 10 days ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/core.rs:132:1
    |
132 | extern {
    | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`
    |
    = note: `#[warn(missing_abi)]` on by default

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/core.rs:227:33
    |
227 |     pub AppLayerRegisterParser: extern fn(parser: *const crate::applayer::RustParser, alproto: AppProto) -> std::os::raw::c_int,
    |                                 ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/core.rs:237:1
    |
237 | extern {
    | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/core.rs:304:1
    |
304 | extern {
    | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
  --> /home/victor/devel/suricata-7.0.x/rust/src/conf.rs:35:1
   |
35 | extern {
   | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/applayer.rs:478:1
    |
478 | extern {
    | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/applayer.rs:490:1
    |
490 | extern {
    | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
   --> /home/victor/devel/suricata-7.0.x/rust/src/applayer.rs:525:1
    |
525 | extern {
    | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
  --> /home/victor/devel/suricata-7.0.x/rust/src/frames.rs:34:1
   |
34 | extern {
   | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
  --> /home/victor/devel/suricata-7.0.x/rust/src/filecontainer.rs:27:1
   |
27 | extern {
   | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: extern declarations without an explicit ABI are deprecated
  --> /home/victor/devel/suricata-7.0.x/rust/src/lua.rs:34:1
   |
34 | extern {
   | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"`

warning: `suricata` (lib) generated 11 warnings (run `cargo fix --lib -p suricata` to apply 11 suggestions)
Actions

Also available in: Atom PDF