[riot-notifications] [RIOT-OS/RIOT] core: fix c11 atomic definitions (fix gcc9 compilation) (#11514)

Marian Buschsieweke notifications at github.com
Wed May 15 14:16:54 CEST 2019


The parameters have to be qualified as Pointer to `volatile` memory here, as this is the official API specification. I think there is no other choice than casting the `void`-Pointer to `volatile` memory to a Pointer to `volatile uintXY_t`. This should for the given C code result in the same machine code to be generated anyway, just without relying on undefined behavior.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11514#issuecomment-492630018
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190515/2ca66f44/attachment.html>


More information about the notifications mailing list