mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
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:
parent
4bb7da8056
commit
af08c2b96c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user