Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: signal: Fix a few build warnings and modernize some C function declarations. #10054

Merged
merged 2 commits into from Apr 12, 2019

Commits on Apr 12, 2019

  1. MAINT: signal: Fix two build warnings in lfilter.c.src.

    * When building with Python 3, there was a pointer variable
      (char *s) that was not used.  The definition of the variable
      was moved into a block contained in the #else-#endif section
      of the #if-#else-#endif preprocesser statement.
    * The second argument in a call to `PyArray_SetBase` had to be
      cast to `PyObject *`.
    WarrenWeckesser committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    4155f0e View commit details
    Browse the repository at this point in the history
  2. MAINT: signal: Modernize the function declarations the bspline util C…

    … code.
    
    As a side effect, this fixes the warning
    
        gcc: scipy/signal/D_bspline_util.c
        scipy/signal/C_bspline_util.c:147:12: warning: promoted type 'double' of K&R function parameter is not compatible with the parameter type 'float' declared in a previous prototype [-Wknr-promoted-parameter]
             float precision;
                   ^
        scipy/signal/C_bspline_util.c:27:111: note: previous declaration is here
        int C_IIR_forback1(__complex__ float,__complex__ float,__complex__ float*,__complex__ float*,int,int,int,float);
    WarrenWeckesser committed Apr 12, 2019
    Configuration menu
    Copy the full SHA
    5ec11a8 View commit details
    Browse the repository at this point in the history