libsync: ndk: Fix compilation in C mode.
Use of 'inline' without 'static' may allow the C compiler to uninline it within the compilation unit, depending on the C standard level. Always using 'static inline' avoids this problem. Test: build + boot to launcher Change-Id: Ifb6e1fa6b84286067ddc2daca4c8942c410e56ab
This commit is contained in:
parent
54cd7e0d2c
commit
5bebf84845
|
@ -69,8 +69,7 @@ struct sync_file_info *sync_file_info(int32_t fd);
|
|||
* The returned array is owned by the parent sync file info, and has
|
||||
* info->num_fences entries.
|
||||
*/
|
||||
inline struct sync_fence_info *sync_get_fence_info(
|
||||
const struct sync_file_info *info) {
|
||||
static inline struct sync_fence_info* sync_get_fence_info(const struct sync_file_info* info) {
|
||||
// This header should compile in C, but some C++ projects enable
|
||||
// warnings-as-error for C-style casts.
|
||||
#pragma GCC diagnostic push
|
||||
|
|
Loading…
Reference in New Issue