# HG changeset patch # User "Yann E. MORIN" # Date 1251655121 -7200 # Node ID 4e8dd617a1ca1194999433844c0e5257cdb4914e # Parent 7dcef3fb5e8f23df0698700b4d33d50e2c7f9c86 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. diff -r 7dcef3fb5e8f -r 4e8dd617a1ca scripts/wrapper.c --- a/scripts/wrapper.c Sun Aug 30 19:54:51 2009 +0200 +++ b/scripts/wrapper.c Sun Aug 30 19:58:41 2009 +0200 @@ -27,6 +27,9 @@ 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.