mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-20 16:20:17 +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:
@ -27,6 +27,9 @@ int main( int argc,
|
|||||||
size_t len;
|
size_t len;
|
||||||
int execve_ret;
|
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),
|
/* 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
|
* then realpath wll work. But if the tool was found in the PATH, realpath
|
||||||
* won't work, and we'll have to search ourselves.
|
* won't work, and we'll have to search ourselves.
|
||||||
|
Reference in New Issue
Block a user