commit:     6b6d311a933fdeee30f9c157771b1de2cd7ba781
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 27 10:53:40 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Nov 27 10:57:09 2025 +0000
URL:        https://gitweb.gentoo.org/proj/steve.git/commit/?id=6b6d311a

Fix some initializer warnings

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 steve.cxx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/steve.cxx b/steve.cxx
index 38cf00d..fda4a08 100644
--- a/steve.cxx
+++ b/steve.cxx
@@ -76,7 +76,7 @@ struct steve_state {
        /* to workaround lack of fuse_buf_free(), keep a global buffer */
        /* https://github.com/libfuse/libfuse/issues/1373 */
        struct fuse_session *session;
-       struct fuse_buf buf{0};
+       struct fuse_buf buf{};
 };
 
 static void steve_wake_waiters(steve_state *state)
@@ -345,7 +345,7 @@ static const struct option steve_opts[] = {
        { "jobs", required_argument, 0, 'j' },
        { "verbose", no_argument, 0, 'v' },
        { "debug", no_argument, 0, 'd' },
-       { 0 },
+       {},
 };
 
 struct fd_guard {
@@ -355,7 +355,7 @@ struct fd_guard {
 
 int main(int argc, char **argv)
 {
-       steve_state state = { 0 };
+       steve_state state{};
 
        int opt;
        bool debug = false;
@@ -408,7 +408,7 @@ int main(int argc, char **argv)
 
        const char *dev_name = "DEVNAME=steve";
        const char *dev_info_argv[] = { dev_name };
-       struct cuse_info ci = { 0 };
+       struct cuse_info ci{};
        ci.dev_info_argc = 1;
        ci.dev_info_argv = dev_info_argv;
        if (state.jobs == 0)

Reply via email to