]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Declare that the new argument may not be used
authorTonu Naks <naks@adacore.com>
Tue, 10 Dec 2024 10:41:16 +0000 (10:41 +0000)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 6 Jan 2025 09:14:48 +0000 (10:14 +0100)
gcc/ada/ChangeLog:

* adaint.c (__gnat_locate_exec_on_path): modify function signature

gcc/ada/adaint.c

index 0459956ff5baf63b09417cf21d94fb3902f6fd42..b906ac092ef4aad1d557997e45c8bb0387f976c1 100644 (file)
@@ -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