diff options
author | Tonu Naks <naks@adacore.com> | 2024-12-05 11:34:24 +0000 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-01-06 10:14:46 +0100 |
commit | 4b0a5e936b957ee4e3596a167d7192a1fdf86c9c (patch) | |
tree | 8cf5a88a31d511dff6ddac617df908b6f6b3179a /gcc | |
parent | 93eb5676a89fe51f3a8068c60a0dca861b0dde74 (diff) | |
download | gcc-4b0a5e936b957ee4e3596a167d7192a1fdf86c9c.zip gcc-4b0a5e936b957ee4e3596a167d7192a1fdf86c9c.tar.gz gcc-4b0a5e936b957ee4e3596a167d7192a1fdf86c9c.tar.bz2 |
ada: Silence unused parameter warning on linux
In __gnat_locate_exec_on_path (char *exec_name, int current_dir_on_windows)
the recently added second parameter is for windows only. On non-windows
platforms its usage is removed by the preprocessor and the compiler
reports unused parameter.
gcc/ada/ChangeLog:
* adaint.c: void parameter on non-windows platforms
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/adaint.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 0b6d4bb..0459956 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -3110,6 +3110,10 @@ __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 |