<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/rootkea/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rootkea">@rootkea</a> I'm not asking if the volatile is needed with current Glib, I know volatile is useless between threads.</p>
<p>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.</p>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2907#issuecomment-927560010">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ65IULZLLAZKNSW4MTUEAC5JANCNFSM5EY3E5PA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJZXIJYJQDRRR2PGKSLUEAC5JA5CNFSM5EY3E5PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG5EXCSQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2907#issuecomment-927560010",
"url": "https://github.com/geany/geany/pull/2907#issuecomment-927560010",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>