<p></p>
<p>Well I was more worried about gcc 7 than clang 12 but I see Travis is using gcc 7.5 so probably ok.</p>
<blockquote>
<p>Ah, as I said - on latest main branch g_once_init_enter still has arg qualified by volatile qualifier right after asking not to use volatile.</p>
</blockquote>
<p>Ahh well, who knows what they are thinking, but anyway as my edit said it should be fine to pass a non-volatile to a volatile.  And as I noted below, its a macro, not a real function, so parameter types are not checked.</p>
<blockquote>
<p>(but now I'm puzzled why this warning then? Maybe I'm missing something)</p>
</blockquote>
<p>Well, all the "functions" are actually macros (hisss booo) according to the error messages in the OP, until the _atomic load() function, so the type from the user code gets passed through to that function which does not have "volatile" on its prototype.</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-927627433">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4SECRCGBNMQ5CR3PDUEAQPPANCNFSM5EY3E5PA">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/AAIOWJ3IO5IYRYNH724CCADUEAQPPA5CNFSM5EY3E5PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG5FHRKI.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-927627433",
"url": "https://github.com/geany/geany/pull/2907#issuecomment-927627433",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>