summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArman Uguray <armansito@google.com>2015-05-29 16:09:45 -0700
committerArman Uguray <armansito@google.com>2015-05-29 16:12:31 -0700
commit0aee2ac3a069e2993243d0dda54f8e62ed325e99 (patch)
treefef03d141ad93ad58187f1bd0dad5d8fbc7b26d1 /include
parentdd50edcbe71397ca3be0d2d0b782618921cf859f (diff)
downloadcore-0aee2ac3a069e2993243d0dda54f8e62ed325e99.tar.gz
core-0aee2ac3a069e2993243d0dda54f8e62ed325e99.tar.bz2
core-0aee2ac3a069e2993243d0dda54f8e62ed325e99.zip
system/audio.h: Make function inline
This patch makes the audio_device_address_to_parameter inline. All of the other helpers defined in this header are inline functions except for this one and this causes compile failures when -Werror=unused-function is used. BUG=21339022 Change-Id: I7db58bf7bed3b89b6752ec2cd2c1f358ba2a4d89
Diffstat (limited to 'include')
-rw-r--r--include/system/audio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/system/audio.h b/include/system/audio.h
index 8d9ec8857..ced200565 100644
--- a/include/system/audio.h
+++ b/include/system/audio.h
@@ -1354,7 +1354,7 @@ static inline size_t audio_bytes_per_sample(audio_format_t format)
}
/* converts device address to string sent to audio HAL via set_parameters */
-static char *audio_device_address_to_parameter(audio_devices_t device, const char *address)
+static inline char *audio_device_address_to_parameter(audio_devices_t device, const char *address)
{
const size_t kSize = AUDIO_DEVICE_MAX_ADDRESS_LEN + sizeof("a2dp_sink_address=");
char param[kSize];