From d875c50bf4d70e50583b2830aeec91fe6f941142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Tue, 29 Mar 2022 19:41:38 +0300 Subject: MDEV-17841 fixup: GCC -Wmaybe-uninitialized Let us remove a redundant condition when the S3 plugin is disabled during compilation time. --- storage/maria/ma_open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'storage/maria') diff --git a/storage/maria/ma_open.c b/storage/maria/ma_open.c index cf5bf2a5fea..e3385a73f84 100644 --- a/storage/maria/ma_open.c +++ b/storage/maria/ma_open.c @@ -296,9 +296,9 @@ MARIA_HA *maria_open(const char *name, int mode, uint open_flags, #ifndef WITH_S3_STORAGE_ENGINE DBUG_ASSERT(!s3); -#endif /* WITH_S3_STORAGE_ENGINE */ - +#else if (!s3) +#endif /* WITH_S3_STORAGE_ENGINE */ { realpath_err= my_realpath(name_buff, fn_format(org_name, name, "", MARIA_NAME_IEXT, -- cgit v1.2.1