tools wrapper: fix error due to unused argument
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Aug 30 19:58:41 2009 +0200 (2009-08-30)
changeset 15044e8dd617a1ca
parent 1503 7dcef3fb5e8f
child 1505 2109143a4b2f
tools wrapper: fix error due to unused argument

In the C wrapper, the argc argument is not used, causing an error
(as we treat warnings as errors). Use a dummy allocation to get
rid of the warning.
scripts/wrapper.c
     1.1 --- a/scripts/wrapper.c	Sun Aug 30 19:54:51 2009 +0200
     1.2 +++ b/scripts/wrapper.c	Sun Aug 30 19:58:41 2009 +0200
     1.3 @@ -27,6 +27,9 @@
     1.4    size_t len;
     1.5    int execve_ret;
     1.6  
     1.7 +  /* Avoid the warning-treated-as-error: "error: unused parameter 'argc'" */
     1.8 +  len = argc;
     1.9 +
    1.10    /* In case we have a relative or absolute pathname (ie. contains a slash),
    1.11     * then realpath wll work. But if the tool was found in the PATH, realpath
    1.12     * won't work, and we'll have to search ourselves.