Removing "statement with no effect" warnings from empty assertions

I’m using LVGL in a PIC24 (XC16 compiler), specifically the release/v6 branch (although it probably would apply to v7 as well).
Everything works as expected, but the compilation process is riddled with “warning: statement with no effect” messages in relation to LV_ASSERT macros, as in https://github.com/lvgl/lvgl/blob/81e72236e5b1e9fe0e2e04abf85cdb960fd693b5/src/lv_core/lv_debug.h#L144.

To the best of my knowledge there is not a compiler flag to disable that specific warning, and it could be fixed by simply prepending (void) to the empty true expression. Should I propose a pull request?

Hi,

In newer versions, these macros are empty as the ASSERT is not enabled.

Please remove the true-s locally. v6 is more than 1 year old and wouldn’t touch that part because it might cause warnings for others.

I understand, thank you for the clarification!