[Github-comments] [geany/geany] Don't use volatile (#2907)

elextr notifications at xxxxx
Mon Sep 27 06:08:20 UTC 2021


@rootkea I'm not asking if the volatile is needed with current Glib, I know volatile is useless between threads.  

As you said the volatile is still in the function definition in recentish Glib versions (2.64 from Ubuntu LTS for eg) but its gone from the docs for Glib 2.70, don't know about the code.

What I'm asking is will removing it on our variable make compilers complain the opposite way because the volatile is still on the function prototype?  I know in C++ its UB to pass a non-volatile to a volatile, but C may be ok.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2907#issuecomment-927560010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210926/448c563f/attachment.htm>


More information about the Github-comments mailing list