On Mon Jul 29 09:52:59 2024 +0000, Zhiyi Zhang wrote:
I don't think this patch is needed at all. Is this for warnings from compilers or some static analysis tool?
Agreed. We could have a helper to return btnPtr for given index, also checking for bounds. Otherwise this change shouldn't make any difference.