From 80738ce44e900653e17b7bc550105de3d6c13f9b Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Wed, 2 Sep 2015 07:48:57 +0200 Subject: [PATCH] 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. --- rpp-test-sw/commands/cmd_port.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.39.2