[PATCH libinput] build-pedantic: use main(void)

Peter Hutterer peter.hutterer at who-t.net
Sun Jan 11 14:09:36 PST 2015


On Fri, Jan 09, 2015 at 10:34:46AM +0100, Marek Chalupa wrote:
> Main has unused parameters argc and argv. Since they are unused and
> C 99 allows to prototype main as 'int main(void)',
> remove them and replace by void. It fixes build when unused parameters
> are treated as errors.
> 
> Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>

merged and pushed, thanks.

Cheers,
   Peter

> ---
>  test/build-pedantic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/build-pedantic.c b/test/build-pedantic.c
> index 1dfb67d..920fc4a 100644
> --- a/test/build-pedantic.c
> +++ b/test/build-pedantic.c
> @@ -3,6 +3,6 @@
>  /* This is a build-test only */
>  
>  int
> -main(int argc, char **argv) {
> +main(void) {
>  	return 0;
>  }
> -- 
> 2.2.0
> 
> _______________________________________________
> 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