android-tools: Drop workaround flag for incompatible pointer types

- The build completes successfully without adding the flag. In fact, the flag is never actually added. Because:

If we use the += operator to add flags to the CC variable early in the recipe, changes will be overwritten because BitBake applies class assignments to CC at a later stage, which replaces any previous modifications. We should use :append to ensure that additions are applied to the final value, after all assignments from core classes have been processed.

- Additionally, the standard way to pass compiler flags in C projects is to use CFLAGS.

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Alper Ak 2025-06-23 18:56:21 +03:00 committed by Khem Raj
parent fda19bec19
commit 3ccd1ffae8
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -187,8 +187,3 @@ FILES:${PN}-fstools = "\
"
BBCLASSEXTEND = "native"
# http://errors.yoctoproject.org/Errors/Details/766881/
# android-tools/5.1.1.r37/git/system/core/adb/adb_auth_host.c:86:23: error: passing argument 2 of 'RSA_get0_key' from incompatible pointer type [-Wincompatible-pointer-types]
# android-tools/5.1.1.r37/git/system/core/adb/adb_auth_host.c:86:27: error: passing argument 3 of 'RSA_get0_key' from incompatible pointer type [-Wincompatible-pointer-types]
CC += "-Wno-error=incompatible-pointer-types"