diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-08-30 19:58:41 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-08-30 19:58:41 +0200 |
commit | af08c2b96c480ed03423da75bbb4908b6d9b38a9 (patch) | |
tree | aa2fa44b102bc4655e3b86aa3ec9b8db272c5eab | |
parent | 4bb7da8056b2ff480b9c76e963c4ffe12a69ac8e (diff) | |
download | crosstool-ng-af08c2b96c480ed03423da75bbb4908b6d9b38a9.tar.gz crosstool-ng-af08c2b96c480ed03423da75bbb4908b6d9b38a9.tar.bz2 crosstool-ng-af08c2b96c480ed03423da75bbb4908b6d9b38a9.zip |
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.
-rw-r--r-- | scripts/wrapper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wrapper.c b/scripts/wrapper.c index dbbcdd9d..3d815b43 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. |