arm-trusted-firmware/drivers/arm/mhu
Leo Yan e2e8a397f8 fix(mhu): fix compilation error with ENABLE_ASSERTIONS=0 option
After disabling assertion with -DENABLE_ASSERTIONS=0, the build reports
error:

drivers/arm/mhu/mhu_wrapper_v3_x.c: In function 'mhu_get_max_message_size':
drivers/arm/mhu/mhu_wrapper_v3_x.c:448:31: error: variable 'err' set but not used [-Werror=unused-but-set-variable]
         enum mhu_v3_x_error_t err;
                               ^~~

This commit fixes the building failure by making the variable 'err' as
__maybe_unused.

Change-Id: I338e6df03d2f0805c83e96d8e3a4abae41e68678
Signed-off-by: Leo Yan <leo.yan@arm.com>
2024-06-28 16:25:09 +01:00
..
mhu_v2_x.c feat(drivers/arm/mhu): add MHU driver 2022-05-11 15:47:02 +02:00
mhu_v2_x.h feat(drivers/arm/mhu): add MHU driver 2022-05-11 15:47:02 +02:00
mhu_v3_x.c feat(mhu): add MHUv3 doorbell driver 2024-03-07 14:01:30 +00:00
mhu_v3_x.h feat(mhu): add MHUv3 doorbell driver 2024-03-07 14:01:30 +00:00
mhu_v3_x_private.h feat(mhu): add MHUv3 doorbell driver 2024-03-07 14:01:30 +00:00
mhu_wrapper_v2_x.c fix(mhuv2): provide only the usable size of memory 2024-02-06 17:42:16 +01:00
mhu_wrapper_v3_x.c fix(mhu): fix compilation error with ENABLE_ASSERTIONS=0 option 2024-06-28 16:25:09 +01:00