[Numpy-svn] [numpy/numpy] ce1dad: MAINT: fftpack.c needs #define NPY_NO_DEPRECATED_A...

GitHub noreply at github.com
Sat Feb 14 18:05:58 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: ce1dadfe0e7accac0721ebaa79f2a4b4a9f56e7e
      https://github.com/numpy/numpy/commit/ce1dadfe0e7accac0721ebaa79f2a4b4a9f56e7e
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-14 (Sat, 14 Feb 2015)

  Changed paths:
    M numpy/fft/fftpack.c

  Log Message:
  -----------
  MAINT: fftpack.c needs #define NPY_NO_DEPRECATED_API NPY_API_VERSION.

This is because of the inclusion of numpy/ndarraytypes.h in b3121e8.


  Commit: f317ab8932931e8dcf9f0e2092bf52161fcda24d
      https://github.com/numpy/numpy/commit/f317ab8932931e8dcf9f0e2092bf52161fcda24d
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-14 (Sat, 14 Feb 2015)

  Changed paths:
    M numpy/core/src/multiarray/scalartypes.c.src

  Log Message:
  -----------
  MAINT: Replace some Python macros by functions.

PyObject_INIT -> PyObject_Init
PyObject_INIT_VAR -> PyObject_InitVar

This avoids warning about parenthetical expression in PyObject_INIT.
Python recommends the functional versions when available.


  Commit: f23d71080b6071609f6220faa092cfc3d622ede5
      https://github.com/numpy/numpy/commit/f23d71080b6071609f6220faa092cfc3d622ede5
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-14 (Sat, 14 Feb 2015)

  Changed paths:
    M numpy/core/src/umath/umath_tests.c.src

  Log Message:
  -----------
  MAINT: Avoid unused variable in umath_tests.c.src.

The variable is only used in an assert statement that is not always
compiled, so use the variable value there instead.


  Commit: e3cc0f4af6c306370fd5fdcd35a1f02be50f4dd1
      https://github.com/numpy/numpy/commit/e3cc0f4af6c306370fd5fdcd35a1f02be50f4dd1
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-02-14 (Sat, 14 Feb 2015)

  Changed paths:
    M numpy/core/src/multiarray/shape.c

  Log Message:
  -----------
  MAINT: Fix possible unitialized variable in shape.c.

The warning was not real, but the logic was too twisted for the
compiler. The function PyArray_Ravel could possibly be improved
a bit, but for now, just initialize the variable to 0.


  Commit: c75caa18f9eae3b17bcfb1297c8e26dc5dccc6e2
      https://github.com/numpy/numpy/commit/c75caa18f9eae3b17bcfb1297c8e26dc5dccc6e2
  Author: Jaime <jaime.frio at gmail.com>
  Date:   2015-02-14 (Sat, 14 Feb 2015)

  Changed paths:
    M numpy/core/src/multiarray/scalartypes.c.src
    M numpy/core/src/multiarray/shape.c
    M numpy/core/src/umath/umath_tests.c.src
    M numpy/fft/fftpack.c

  Log Message:
  -----------
  Merge pull request #5571 from charris/fix-warnings

Fix warnings


Compare: https://github.com/numpy/numpy/compare/172ad3ebc4fe...c75caa18f9ea


More information about the Numpy-svn mailing list