[PATCH 3/4] Fix redundant declaration of SetAccelerationProfile()

Simon Thum simon.thum at gmx.de
Wed Feb 1 16:59:12 PST 2012


On 01/27/2012 04:55 PM, Jon TURNEY wrote:
> ptrveloc.c:65:1: warning: redundant redeclaration of 'SetAccelerationProfile' [-Wredundant-decls]
> ../include/ptrveloc.h:120:1: note: previous declaration of 'SetAccelerationProfile' was here
>
> This looks like a left-over declaration which used to be static
...which is exactly what it is (or was).

Reviewed-by: Simon Thum <simon.thum at gmx.de>

>
> Signed-off-by: Jon TURNEY<jon.turney at dronecode.org.uk>
> ---
>   dix/ptrveloc.c |    2 --
>   1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
> index 7b6f560..977eed6 100644
> --- a/dix/ptrveloc.c
> +++ b/dix/ptrveloc.c
> @@ -61,8 +61,6 @@
>    ****************************************************************************/
>
>   /* fwds */
> -int
> -SetAccelerationProfile(DeviceVelocityPtr vel, int profile_num);
>   static double
>   SimpleSmoothProfile(DeviceIntPtr dev, DeviceVelocityPtr vel, double velocity,
>                       double threshold, double acc);



More information about the xorg-devel mailing list