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

Avinash Sonawane notifications at xxxxx
Sun Sep 26 14:30:04 UTC 2021


Hello!

This fixes following clang warning:
```
stash.c:92:6: warning: passing 'typeof (*(&type)) *' (aka 'volatile unsigned long *') to parameter of type 'gsize *' (aka 'unsigned long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if (g_once_init_enter(&type))
            ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gthread.h:260:7: note: expanded from macro 'g_once_init_enter'
    (!g_atomic_pointer_get (location) &&                             \
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gatomic.h:117:38: note: expanded from macro 'g_atomic_pointer_get'
    __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST); \
                                     ^~~~~~~~~~~~~~~~~
1 warning generated.
```
Thanks!
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/2907

-- Commit Summary --

  * <a href="https://github.com/geany/geany/pull/2907/commits/4b6c377b62f05a1068446f998077576d99d99e6d">Don't use volatile</a>

-- File Changes --

    M src/stash.c (2)

-- Patch Links --

https://github.com/geany/geany/pull/2907.patch
https://github.com/geany/geany/pull/2907.diff

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210926/cab9cd82/attachment.htm>


More information about the Github-comments mailing list