Put temporary fix for function pointer casting error in arm gcc (#14830)
Put temporary fix for function pointer casting error in arm gcc (#14830)

* Put temporary fix for function pointer casting error in arm gcc

* Restyle and add comment to prevent future unintended change
nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip