From c6b01be6495b055b9458b1005e17d05177053c32 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 14 May 2023 14:22:47 -0700 Subject: [PATCH] mount_image.c: silence a -Wmaybe-uninitialized warning Silence a false positive -Wmaybe-uninitialized warning in do_unmount_commit() with gcc 13.1.1. --- src/mount_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount_image.c b/src/mount_image.c index 38523517..4702d60d 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2421,7 +2421,7 @@ do_unmount_commit(const char *dir, int unmount_flags, wimlib_progress_func_t progfunc, void *progctx) { struct wimfs_unmount_info unmount_info; - mqd_t mq; + mqd_t mq = (mqd_t)-1; struct commit_progress_thread_args args; struct thread commit_progress_tid; int ret; -- 2.43.0