Skip to content

Commit

Permalink
Supress warnings when building android
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Dec 11, 2023
1 parent 420a58a commit 5bc23d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mullvad-relay-selector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ impl RelaySelector {

/// Returns a random relay and relay endpoint matching the given constraints and with
/// preferences applied.
#[cfg_attr(target_os = "android", allow(unused_variables))]
fn get_tunnel_endpoint(
&self,
relay_constraints: &RelayConstraints,
Expand Down Expand Up @@ -408,6 +409,7 @@ impl RelaySelector {

/// Returns an OpenVpn endpoint, should only ever be used when the user has specified the tunnel
/// protocol as only OpenVPN.
#[cfg_attr(target_os = "android", allow(dead_code))]
fn get_openvpn_endpoint(
&self,
relay_constraints: &RelayConstraints,
Expand Down Expand Up @@ -591,6 +593,7 @@ impl RelaySelector {
}

/// Like [Self::get_tunnel_endpoint_internal] but also selects an entry endpoint if applicable.
#[cfg_attr(target_os = "android", allow(dead_code))]
fn get_multihop_tunnel_endpoint_internal(
&self,
relay_constraints: &RelayConstraints,
Expand Down Expand Up @@ -680,6 +683,7 @@ impl RelaySelector {

/// Returns a tunnel endpoint of any type, should only be used when the user hasn't specified a
/// tunnel protocol.
#[cfg_attr(target_os = "android", allow(dead_code))]
fn get_any_tunnel_endpoint(
&self,
relay_constraints: &RelayConstraints,
Expand Down Expand Up @@ -725,6 +729,7 @@ impl RelaySelector {
}

// This function ignores the tunnel type constraint on purpose.
#[cfg_attr(target_os = "android", allow(dead_code))]
fn preferred_constraints(
&self,
original_constraints: &RelayConstraints,
Expand Down

0 comments on commit 5bc23d3

Please sign in to comment.