summaryrefslogtreecommitdiff
path: root/system/include/hardware
diff options
context:
space:
mode:
authoralk3pInjection <webmaster@raspii.tech>2022-09-02 21:23:16 +0800
committeralk3pInjection <webmaster@raspii.tech>2022-09-02 21:23:16 +0800
commit0663b8452920b4d8dbc175e70940e7ca9843dc06 (patch)
tree9f40642a12b399a41786f52ee9bdea20470f5040 /system/include/hardware
parentfd44afebdcad9cfcaf4b29e979f1d6acc6c917f2 (diff)
Bluetooth: Fix build with Clang 14HEADtachibana
Output: In file included from vendor/qcom/opensource/commonsys/packages/apps/Bluetooth/jni/com_android_bluetooth_a2dp_sink.cpp:22: packages/modules/Bluetooth/system/include/hardware/bt_av.h:132:15: error: anonymous non-C-compatible type given name for linkage purposes by typedef declaration after its linkage was computed; add a tag name here to establish linkage prior to definition typedef struct { ^ btav_a2dp_codec_config_t packages/modules/Bluetooth/system/include/hardware/bt_av.h:147:3: note: type is not C-compatible due to this member declaration std::string ToString() const { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ packages/modules/Bluetooth/system/include/hardware/bt_av.h:261:3: note: type is given name 'btav_a2dp_codec_config_t' for linkage purposes by this typedef declaration } btav_a2dp_codec_config_t; ^ 1 error generated. Change-Id: I6a1ae5cbcaea50312091f3f42bc9d8184206fab4
Diffstat (limited to 'system/include/hardware')
-rw-r--r--system/include/hardware/bt_av.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/include/hardware/bt_av.h b/system/include/hardware/bt_av.h
index 3fe99a9fba..63259cd0c9 100644
--- a/system/include/hardware/bt_av.h
+++ b/system/include/hardware/bt_av.h
@@ -129,7 +129,7 @@ typedef enum {
* For codec capability, fields "sample_rate", "bits_per_sample" and
* "channel_mode" can contain bit-masks with all supported features.
*/
-typedef struct {
+struct btav_a2dp_codec_config_t {
btav_a2dp_codec_index_t codec_type;
btav_a2dp_codec_priority_t
codec_priority; // Codec selection priority
@@ -258,7 +258,7 @@ typedef struct {
result += name;
return result;
}
-} btav_a2dp_codec_config_t;
+};
typedef struct {
btav_a2dp_scmst_enable_status_t enable_status;