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

Skip to content
Commit ebeec7e1 authored by Hui Peng's avatar Hui Peng
Browse files

Fix a potential ODR vialation

Evaluation of (BTM_BLE_CONFORMANCE_TESTING == TRUE)
is dependent on whether bt_target.h is included or not.

When bt_target.h is not included, neither BTM_BLE_CONFORMANCE_TESTING
nor TRUE are defined, (BTM_BLE_CONFORMANCE_TESTING == TRUE)
evaluates to true; When bt_target.h is included
(BTM_BLE_CONFORMANCE_TESTING == TRUE) evaluates to false.

This resulted in a violation of ODR (one definition rule) and
caused net_test_stack_btm to fail in aosp/2817294.

This change uses ifdef BTM_BLE_CONFORMANCE_TESTING.

Bug: 309029578
Test: atest net_test_stack_btm
Change-Id: Ic03b9808657d08ceef770e9dc1b031a0af46029d
parent 7b1776a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment