[PATCH] fixed-benchmark: remove unused arguments in main

Bryce Harrington bryce at osg.samsung.com
Fri Jul 10 17:18:30 PDT 2015


On Fri, Jul 03, 2015 at 09:33:23AM +0200, Marek Chalupa wrote:
> Fixed benchmark uses main(int argc, char *argv[])
> but does not use the arguments, so we can replace them with void
> 
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>

Pushed:

To ssh://git.freedesktop.org/git/wayland/wayland
   c2547c7..ba731f9  master -> master

> ---
>  tests/fixed-benchmark.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/fixed-benchmark.c b/tests/fixed-benchmark.c
> index 8d73c83..277ecce 100644
> --- a/tests/fixed-benchmark.c
> +++ b/tests/fixed-benchmark.c
> @@ -96,7 +96,7 @@ benchmark(const char *s, void (*f)(void))
>  	       s, elapsed.tv_sec, elapsed.tv_nsec);
>  }
>  
> -int main(int argc, char *argv[])
> +int main(void)
>  {
>  	benchmark("noop", noop_conversion);
>  	benchmark("magic", magic_conversion);
> -- 
> 2.4.3
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list