[Spice-devel] [PATCH vd_agent_linux 2/7] vdagentd: Tell different tools that we are falling through
Frediano Ziglio
fziglio at redhat.com
Thu Jan 3 10:02:42 UTC 2019
Different tools (compilers or analysers) recognise missing break
in switch as possible problems.
Many recognise "fall through" comment to tell is wanted.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
src/vdagentd/vdagentd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
index a2f0946..ec679fd 100644
--- a/src/vdagentd/vdagentd.c
+++ b/src/vdagentd/vdagentd.c
@@ -965,6 +965,7 @@ static void daemonize(void)
case -1:
syslog(LOG_ERR, "fork: %m");
retval = 1;
+ // fall through
default:
udscs_destroy_server(server);
exit(retval);
--
2.20.1
More information about the Spice-devel
mailing list