[riot-notifications] [RIOT-OS/RIOT] Warn when casts do no preserve qualifiers (-Wcast-qual) (#10177)

Kees Bakker notifications at github.com
Fri Jan 4 21:23:56 CET 2019

> My main point here is that there is no point in setting a rule only to break it later. Why make something const if later we ignore the const?

I agree with @jcarrano 

>  (the case with volatile is different, because nothing can break by not making a variable const, but it can break by not making it volatile).

Here I disagree, I **do** think it is bad to ignore `volatile`. It is explicitly written as undefined behaviour [1].

[1] https://en.cppreference.com/w/c/language/volatile

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190104/05584a8f/attachment.html>

More information about the notifications mailing list