diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2021-05-05 11:48:48 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2021-05-05 11:48:48 +0200 |
commit | dee371fdd4ae25f837b9b2ded7789d07ed739c9e (patch) | |
tree | 1fc09367a1f5576860964fa7efcad776b2ae7e87 /libgfortran | |
parent | 3db6989aba707708f4fca3ff1bc92c4078b5c4cc (diff) | |
download | gcc-dee371fdd4ae25f837b9b2ded7789d07ed739c9e.tar.gz |
libgfortran/intrinsics/chmod.c: Silence unused var warning
libgfortran/ChangeLog:
* intrinsics/chmod.c (chmod_internal): Only declare mode_mask var
if HAVE_UMASK.
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/intrinsics/chmod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgfortran/intrinsics/chmod.c b/libgfortran/intrinsics/chmod.c index 8b5140a05a3..d0371ce560f 100644 --- a/libgfortran/intrinsics/chmod.c +++ b/libgfortran/intrinsics/chmod.c @@ -71,7 +71,10 @@ chmod_internal (char *file, char *mode, gfc_charlen_type mode_len) #ifndef __MINGW32__ bool is_dir; #endif - mode_t mode_mask, file_mode, new_mode; +#ifdef HAVE_UMASK + mode_t mode_mask; +#endif + mode_t file_mode, new_mode; struct stat stat_buf; if (mode_len == 0) |