Ignore:
Timestamp:
May 12, 2016, 1:28:35 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
2ee90df
Parents:
911c22f
git-author:
Paul Brossier <piem@piem.org> (05/11/16 15:10:02)
git-committer:
Paul Brossier <piem@piem.org> (05/12/16 01:28:35)
Message:

ext/: build with -Wdeclaration-after-statement -Werror

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-cvec.c

    r911c22f ra138975  
    141141Py_cvec_set_norm (Py_cvec * vec, PyObject *input, void * closure)
    142142{
     143  npy_intp length;
    143144  if (!PyAubio_IsValidVector(input)) {
    144145    return 1;
    145146  }
    146   npy_intp length = PyArray_SIZE ((PyArrayObject *)input);
     147  length = PyArray_SIZE ((PyArrayObject *)input);
    147148  if (length != vec->length) {
    148149    PyErr_Format (PyExc_ValueError,
     
    161162Py_cvec_set_phas (Py_cvec * vec, PyObject *input, void * closure)
    162163{
     164  npy_intp length;
    163165  if (!PyAubio_IsValidVector(input)) {
    164166    return 1;
    165167  }
    166   npy_intp length = PyArray_SIZE ((PyArrayObject *)input);
     168  length = PyArray_SIZE ((PyArrayObject *)input);
    167169  if (length != vec->length) {
    168170    PyErr_Format (PyExc_ValueError,
Note: See TracChangeset for help on using the changeset viewer.