From: Michal Sojka Date: Wed, 2 Sep 2015 05:48:57 +0000 (+0200) Subject: Do not issue warning about unreachable code X-Git-Tag: eaton-0.6~4 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/rpp-test-sw.git/commitdiff_plain/80738ce44e900653e17b7bc550105de3d6c13f9b Do not issue warning about unreachable code We keep the return statement here for the case that the function will be modified and return will become reachable again. --- diff --git a/rpp-test-sw/commands/cmd_port.c b/rpp-test-sw/commands/cmd_port.c index 5f404d7..c8ed23d 100644 --- a/rpp-test-sw/commands/cmd_port.c +++ b/rpp-test-sw/commands/cmd_port.c @@ -203,7 +203,9 @@ int cmd_do_port_val(cmd_io_t *cmd_io, const struct cmd_des *des, char *param[]) return -CMDERR_NODEV; } } - return 0; +#pragma diag_remark 112 + return 0; //warning #112-D: statement is unreachable +#pragma diag_warning 112 } #endif /* DOCGEN */