1. 14 Nov, 2021 1 commit
    • Fix a gcc 11 warning in src/thread.h · 5675312e
      When building under gcc 11, there is a warning about an incompatible pointer
      type, since
      [`__atomic_exchange`](https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html)
      does not take `volatile` pointers:
      
      ```
      In file included from ../src/common.h:81,
                       from ../src/transports/winhttp.c:8:
      ../src/thread-utils.h: In function ‘git___swap’:
      ../src/thread-utils.h:168:9: warning: argument 3 of ‘__atomic_exchange’ discards ‘volatile’ qualifier [-Wincompatible-pointer-types]
        168 |         __atomic_exchange(ptr, &newval, &foundval, __ATOMIC_SEQ_CST);
            |         ^~~~~~~~~~~~~~~~~
      ```
      
      This change drops the `volatile` qualifier so that the pointer type matches
      what `__atomic_exchange` expects.
      lhchavez committed
  2. 11 Nov, 2021 34 commits
  3. 10 Nov, 2021 1 commit
  4. 09 Nov, 2021 4 commits