https://gcc.gnu.org/g:75e126db1e5c08261e3fb9fd0b831403c094d1f1
commit r15-6585-g75e126db1e5c08261e3fb9fd0b831403c094d1f1 Author: Tonu Naks <n...@adacore.com> Date: Tue Dec 10 10:41:16 2024 +0000 ada: Declare that the new argument may not be used gcc/ada/ChangeLog: * adaint.c (__gnat_locate_exec_on_path): modify function signature Diff: --- gcc/ada/adaint.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 0459956ff5ba..b906ac092ef4 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -3079,7 +3079,8 @@ __gnat_locate_exec (char *exec_name, char *path_val) /* Locate an executable using the Systems default PATH. */ char * -__gnat_locate_exec_on_path (char *exec_name, int current_dir_on_windows) +__gnat_locate_exec_on_path (char *exec_name, + int current_dir_on_windows ATTRIBUTE_UNUSED) { char *apath_val; @@ -3110,10 +3111,6 @@ __gnat_locate_exec_on_path (char *exec_name, int current_dir_on_windows) } #else - /* Tell the compiler that we are not going to use this parameter - on non-windows platforms. */ - (void)current_dir_on_windows; - const char *path_val = getenv ("PATH"); /* If PATH is not defined, proceed with __gnat_locate_exec anyway, so we can