From: Tonu Naks <[email protected]>
gcc/ada/ChangeLog:
* adaint.c (__gnat_locate_exec_on_path): modify function signature
Tested on x86_64-pc-linux-gnu, committed on master.
---
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 0459956ff5b..b906ac092ef 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
--
2.43.0