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.
This commit is contained in:
Yann E. MORIN" 2009-08-30 19:58:41 +02:00
parent 4bb7da8056
commit af08c2b96c

View File

@ -27,6 +27,9 @@ int main( int argc,
size_t len;
int execve_ret;
/* Avoid the warning-treated-as-error: "error: unused parameter 'argc'" */
len = argc;
/* In case we have a relative or absolute pathname (ie. contains a slash),
* then realpath wll work. But if the tool was found in the PATH, realpath
* won't work, and we'll have to search ourselves.