summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/jffs2/src/readinode.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2020-04-05 14:22:56 -0700
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-12 08:16:30 +0100
commit819374bebceeba57989d6d9739ca51e636030f88 (patch)
treeac86052ed7141eacde5d772117e92ebd56bf82da /cpukit/libfs/src/jffs2/src/readinode.c
parentjffs2: Add <linux/printk.h> (diff)
downloadrtems-819374bebceeba57989d6d9739ca51e636030f88.tar.bz2
jffs2: Fix if/else empty body warnings
When debug (print) macros are not enabled, change them to use the no_printk() macro instead of <nothing>. This fixes gcc warnings when -Wextra is used: ../cpukit/libfs/src/jffs2/src/nodelist.c:255:37: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] ../cpukit/libfs/src/jffs2/src/nodelist.c:278:38: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] ../cpukit/libfs/src/jffs2/src/nodelist.c:558:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] ../cpukit/libfs/src/jffs2/src/xattr.c:1247:58: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] ../cpukit/libfs/src/jffs2/src/xattr.c:1281:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] Builds without warnings on all 3 levels of CONFIG_JFFS2_FS_DEBUG. Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Richard Weinberger <richard@nod.at> Cc: linux-mtd@lists.infradead.org Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions