Skip to content

Commit

Permalink
seccomp: Suppress warning, if no feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuesch committed Oct 27, 2024
1 parent 378d034 commit 0ca9aa1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tokio = "1"
letmein-conf = { version = "7", path = "./letmein-conf" }
letmein-fwproto = { version = "7", path = "./letmein-fwproto" }
letmein-proto = { version = "7", path = "./letmein-proto" }
letmein-seccomp = { version = "7", path = "./letmein-seccomp" }
letmein-seccomp = { version = "7", path = "./letmein-seccomp", default-features = false }
letmein-systemd = { version = "7", path = "./letmein-systemd" }

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion letmein-seccomp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ categories = { workspace = true }
keywords = { workspace = true }

[features]
default = []
default = [ "compile", "install", "ser", "de" ]
compile = []
install = []
ser = []
Expand Down
1 change: 1 addition & 0 deletions letmein-seccomp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ impl Action {
}

/// A compiled seccomp filter program.
#[allow(dead_code)]
pub struct Filter(BpfProgram);

impl Filter {
Expand Down

0 comments on commit 0ca9aa1

Please sign in to comment.