From af08c2b96c480ed03423da75bbb4908b6d9b38a9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 30 Aug 2009 19:58:41 +0200 Subject: 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 --git a/scripts/wrapper.c b/scripts/wrapper.c index dbbcdd9..3d815b4 100644 --- a/scripts/wrapper.c +++ b/scripts/wrapper.c @@ -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. -- cgit v0.10.2-6-g49f6