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

Commit 5603d287 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Chih-hung Hsieh
Browse files

Make header functions "inline" to avoid warning when unused.

Change-Id: Iefac44f3c0e1c3fd4b19833d9692744100f92e00
(cherry picked from commit 5e9febef)
parent 7b4df6a3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ static inline bool is_state_in_call(int state)
 *
 * @return true if the device is a virtual one, false otherwise.
 */
static bool is_virtual_input_device(audio_devices_t device)
static inline bool is_virtual_input_device(audio_devices_t device)
{
    if ((device & AUDIO_DEVICE_BIT_IN) != 0) {
        device &= ~AUDIO_DEVICE_BIT_IN;
@@ -78,7 +78,7 @@ static bool is_virtual_input_device(audio_devices_t device)
 *
 * @return true if the device needs distinguish on address, false otherwise..
 */
static bool device_distinguishes_on_address(audio_devices_t device)
static inline bool device_distinguishes_on_address(audio_devices_t device)
{
    return ((device & APM_AUDIO_DEVICE_MATCH_ADDRESS_ALL & ~AUDIO_DEVICE_BIT_IN) != 0);
}