Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44505907 authored by howardchung's avatar howardchung Committed by Yun-hao Chung
Browse files

Floss: Fix build warnings in SigData

Bug: 294319446
Tag: #floss
Test: run ./build.py
Test: mma -j32
Change-Id: I91796fe2115e227e84376b78783ca1220067c107
parent 724d3f64
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -731,7 +731,7 @@ impl IBluetooth for BluetoothDBus {
        dbus_generated!()
    }

    fn init(&mut self, init_flags: Vec<String>) -> bool {
    fn init(&mut self, _init_flags: Vec<String>) -> bool {
        // Not implemented by server
        true
    }
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ impl IBluetooth for IBluetoothDBus {
    }

    // Not exposed over D-Bus. The stack is automatically initialized when the daemon starts.
    fn init(&mut self, init_flags: Vec<String>) -> bool {
    fn init(&mut self, _init_flags: Vec<String>) -> bool {
        dbus_generated!()
    }

+1 −1
Original line number Diff line number Diff line
@@ -431,7 +431,7 @@ fn main() -> Result<(), Box<dyn Error>> {

lazy_static! {
    /// Data needed for signal handling.
    static ref SIG_DATA: Mutex<Option<(Sender<Message>, Arc<(SigData)>)>> = Mutex::new(None);
    static ref SIG_DATA: Mutex<Option<(Sender<Message>, Arc<SigData>)>> = Mutex::new(None);
}

extern "C" fn handle_sigterm(_signum: i32) {
+2 −2
Original line number Diff line number Diff line
@@ -509,7 +509,7 @@ pub struct Bluetooth {
    discoverable_timeout: Option<JoinHandle<()>>,

    /// Used to notify signal handler that we have turned off the stack.
    sig_notifier: Arc<(SigData)>,
    sig_notifier: Arc<SigData>,
}

impl Bluetooth {
@@ -518,7 +518,7 @@ impl Bluetooth {
        adapter_index: i32,
        hci_index: i32,
        tx: Sender<Message>,
        sig_notifier: Arc<(SigData)>,
        sig_notifier: Arc<SigData>,
        intf: Arc<Mutex<BluetoothInterface>>,
        bluetooth_admin: Arc<Mutex<Box<BluetoothAdmin>>>,
        bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>,