git: makefs(8): Fix several warnings and tweak Makefile

Aaron LI aly at crater.dragonflybsd.org
Tue Feb 18 17:42:00 PST 2025


commit 49a42df32a09fdac67fed5415ca880647c907bc3
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Feb 19 09:38:14 2025 +0800

    makefs(8): Fix several warnings and tweak Makefile
    
    ffs.c: In function 'ffs_write_file':
    ffs.c:944:9: warning: missing initializer for field 'v_type' of 'struct m_vnode' [-Wmissing-field-initializers]
      struct m_vnode vp = { fsopts, NULL };
             ^~~~~~~
    In file included from ffs/ffs_extern.h:38,
                     from ffs.c:106:
    /usr/src/usr.sbin/makefs/ffs/buf.h:57:13: note: 'v_type' declared here
      enum vtype v_type; /* DragonFly */
    
    In file included from hammer2.h:41,
                     from hammer2.c:59:
    hammer2/hammer2.h: In function 'hammer2_knote':
    hammer2/hammer2.h:2098:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
       KNOTE(&vp->v_pollinfo.vpi_kqinfo.ki_note, flags);
                                                       ^
    ...

Summary of changes:
 usr.sbin/makefs/Makefile                 | 9 ++++++---
 usr.sbin/makefs/ffs.c                    | 6 +++---
 usr.sbin/makefs/hammer2/hammer2_compat.h | 2 +-
 3 files changed, 10 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/49a42df32a09fdac67fed5415ca880647c907bc3


-- 
DragonFly BSD source repository


More information about the Commits mailing list