aboutsummaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-26 09:20:13 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-26 09:21:45 +0200
commit7d204edfe87f4e22105bcaeb750d69ac769afdd6 (patch)
treec2d4d6ebef59f9ec754be15fa89aca0facfc899c /include/sound
parent74a05da4f0650e0f395ab541dd6ef29e6b443376 (diff)
tinypcminfo: make function pcm_get_format_name() static
When building tinyalsa with gcc 5.x, the following warnings appear: tinypcminfo.c:97:52: warning: 'format_lookup' is static but used in inline function 'pcm_get_format_name' which is not static return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL; ^ tinypcminfo.c:97:35: warning: 'format_lookup' is static but used in inline function 'pcm_get_format_name' which is not static return bit_index < ARRAY_SIZE(format_lookup) ? format_lookup[bit_index] : NULL; And the build fails with: tinypcminfo.o: In function `main': tinypcminfo.c:(.text+0x2f0): undefined reference to `pcm_get_format_name' collect2: error: ld returned 1 exit status To fix this, this patch marks the pcm_get_format_name() as static, since it's anyway only used in tinypcminfo.c. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions