From df6ff365d3292c9874b055b55e2378ee8307c1fd Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Thu, 13 Jun 2024 08:37:47 +0200 Subject: imx-vpu-hantro: fix compile time error GCC-14 set more warnings to errors, demote the ones which trigger to a warning. Fixes: | ../../source/h264high/h264decapi.c:1803:22: error: assignment to 'const u8 *' {aka 'const unsigned char *'} from incompatible pointer type 'u32 *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] | 1803 | ref_data = ref.virtual_address; | ../../source/h264high/h264decapi.c:2086:22: error: assignment to 'const u8 *' {aka 'const unsigned char *'} from incompatible pointer type 'u32 *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] | 2086 | ref_data = ref.virtual_address; Signed-off-by: Max Krummenacher --- recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb index b486fda5f..2a35f9acd 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.32.0.bb @@ -17,6 +17,12 @@ PLATFORM:mx8mm-nxp-bsp = "IMX8MM" PLATFORM:mx8mq-nxp-bsp = "IMX8MQ" PLATFORM:mx8mp-nxp-bsp = "IMX8MP" +#| ../../source/h264high/h264decapi.c:1803:22: error: assignment to 'const u8 *' {aka 'const unsigned char *'} from incompatible pointer type 'u32 *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] +#| 1803 | ref_data = ref.virtual_address; +#| ../../source/h264high/h264decapi.c:2086:22: error: assignment to 'const u8 *' {aka 'const unsigned char *'} from incompatible pointer type 'u32 *' {aka 'unsigned int *'} [-Wincompatible-pointer-types] +#| 2086 | ref_data = ref.virtual_address; + +CFLAGS += " -Wno-error=incompatible-pointer-types" EXTRA_OEMAKE = " \ CROSS_COMPILE="${HOST_PREFIX}" \ SDKTARGETSYSROOT="${STAGING_DIR_TARGET}" \ -- cgit v1.2.3-54-g00ecf