Changeset a138975


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

Location:
python/ext
Files:
4 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,
  • python/ext/py-fft.c

    r911c22f ra138975  
    8181{
    8282  PyObject *input;
     83  cvec_t c_out;
    8384
    8485  if (!PyArg_ParseTuple (args, "O", &input)) {
     
    9798  }
    9899
    99   cvec_t c_out;
    100100  Py_INCREF(self->doout);
    101101  if (!PyAubio_PyCvecToCCvec(self->doout, &c_out)) {
     
    117117{
    118118  PyObject *input;
     119  fvec_t out;
    119120
    120121  if (!PyArg_ParseTuple (args, "O", &input)) {
     
    133134  }
    134135
    135   fvec_t out;
    136136  Py_INCREF(self->rdoout);
    137137  if (!PyAubio_ArrayToCFvec(self->rdoout, &out) ) {
  • python/ext/py-source.c

    r911c22f ra138975  
    174174Py_source_do(Py_source * self, PyObject * args)
    175175{
     176  PyObject *outputs;
    176177  uint_t read;
    177178  read = 0;
     
    184185  aubio_source_do (self->o, &(self->c_read_to), &read);
    185186
    186   PyObject *outputs = PyTuple_New(2);
     187  outputs = PyTuple_New(2);
    187188  PyTuple_SetItem( outputs, 0, self->read_to );
    188189  PyTuple_SetItem( outputs, 1, (PyObject *)PyLong_FromLong(read));
     
    194195Py_source_do_multi(Py_source * self, PyObject * args)
    195196{
     197  PyObject *outputs;
    196198  uint_t read;
    197199  read = 0;
     
    204206  aubio_source_do_multi (self->o, &(self->c_mread_to), &read);
    205207
    206   PyObject *outputs = PyTuple_New(2);
     208  outputs = PyTuple_New(2);
    207209  PyTuple_SetItem( outputs, 0, self->mread_to);
    208210  PyTuple_SetItem( outputs, 1, (PyObject *)PyLong_FromLong(read));
  • python/ext/ufuncs.c

    r911c22f ra138975  
    8585{
    8686  int err = 0;
     87  PyObject *dict, *f, *g, *h;
    8788
    8889  err = _import_umath ();
     
    9293  }
    9394
    94   PyObject *f, *dict;
    9595  dict = PyModule_GetDict(m);
    9696  f = PyUFunc_FromFuncAndData(Py_aubio_unary_functions, Py_unwrap2pi_data, Py_aubio_unary_types,
     
    100100  Py_DECREF(f);
    101101
    102   PyObject *g;
    103102  g = PyUFunc_FromFuncAndData(Py_aubio_unary_functions, Py_freqtomidi_data, Py_aubio_unary_types,
    104103          Py_aubio_unary_n_types, Py_aubio_unary_n_inputs, Py_aubio_unary_n_outputs,
     
    107106  Py_DECREF(g);
    108107
    109   PyObject *h;
    110108  h = PyUFunc_FromFuncAndData(Py_aubio_unary_functions, Py_miditofreq_data, Py_aubio_unary_types,
    111109          Py_aubio_unary_n_types, Py_aubio_unary_n_inputs, Py_aubio_unary_n_outputs,
Note: See TracChangeset for help on using the changeset viewer.