I got annoyed with all the warnings that pop up while building so I tried to remove them.
There are 3 strict aliasing warnings left which I can not resolve.
So maybe one of you other programmer could point me in the right direction? (Rudeog? pld?)
I understand the general concep of aliasing, but why is
power.d32 = USB_OTG_READ_REG32(&pdev->regs.PCGCCTL);
breaking those rules? All involved types are uint32.
Comments
but doesn't this make the code wrong in the first place?
https://github.com/micropython/micropython/issues/211
the proposed fix resolves the issue.
I think there is no other way due to automatic integer promotion.