1. 01 Oct, 2021 1 commit
  2. 29 Sep, 2021 1 commit
  3. 28 Sep, 2021 1 commit
  4. 27 Sep, 2021 2 commits
  5. 24 Sep, 2021 1 commit
  6. 20 Sep, 2021 1 commit
  7. 07 Sep, 2021 4 commits
  8. 06 Sep, 2021 1 commit
    • Nicolas Pauss's avatar
      Fix maybe uninitialized `value` in get_value and get_value_no_default. (GH-4361) · 16a82475
      Nicolas Pauss authored
      ff16389c introduced convenient functions get_value() and get_value_no_default().
      
      Unfortunately, the variable `value` in these functions was not set before usage with PyContextVar_Get().
      This triggered some warnings:
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          """Return a new reference to the value of the context variable,
          or the default value of the context variable,
          or None if no such value or default was found.
          """
          cdef PyObject *value
          PyContextVar_Get(var, NULL, &value)
                                      ^
      ------------------------------------------------------------
      
      Cython/Includes/cpython/contextvars.pxd:118:33: local variable 'value' might be referenced before assignment
      
      Error compiling Cython file:
      ------------------------------------------------------------
      ...
          or the provided default value if no such value was found.
      
          Ignores the default value of the context variable, if any.
          """
          cdef PyObject *value
          PyContextVar_Get(var, <PyObject*>default_value, &value)
                                                          ^
      ------------------------------------------------------------
      
      Cython/Includes/cpython/contextvars.pxd:136:53: local variable 'value' might be referenced before assignment
      
      It can be replicated by simply importing `cpython`:
      echo "cimport cpython" >/tmp/mod.pyx && ./cython.py -Werror -Wextra /tmp/mod.pyx
      
      The solution is simply to assign NULL to `value` on declaration.
      16a82475
  9. 05 Sep, 2021 1 commit
  10. 03 Sep, 2021 2 commits
  11. 01 Sep, 2021 3 commits
  12. 31 Aug, 2021 4 commits
  13. 09 Aug, 2021 1 commit
  14. 08 Aug, 2021 1 commit
  15. 07 Aug, 2021 5 commits
  16. 06 Aug, 2021 2 commits
  17. 31 Jul, 2021 2 commits
  18. 27 Jul, 2021 1 commit
  19. 26 Jul, 2021 6 commits