PROTON-1124: Removed dead code pointed out by Coverity
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/3b8be927 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/3b8be927 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/3b8be927 Branch: refs/heads/master Commit: 3b8be927b41c350ff5b10da4cea036dda0d236cb Parents: d8537ee Author: Andrew Stitcher <[email protected]> Authored: Mon Feb 1 17:33:40 2016 -0500 Committer: Andrew Stitcher <[email protected]> Committed: Tue Feb 2 15:40:07 2016 -0500 ---------------------------------------------------------------------- proton-c/src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/3b8be927/proton-c/src/scanner.c ---------------------------------------------------------------------- diff --git a/proton-c/src/scanner.c b/proton-c/src/scanner.c index 84d8e3f..9a058e9 100644 --- a/proton-c/src/scanner.c +++ b/proton-c/src/scanner.c @@ -227,7 +227,7 @@ static int pni_scanner_alpha(pn_scanner_t *scanner, const char *str) } pni_scanner_emit(scanner, type, str, n); - return type == PN_TOK_ERR ? pn_scanner_err(scanner, PN_ERR, "unrecognized keyword") : 0; + return 0; } static int pni_scanner_symbol(pn_scanner_t *scanner, const char *str) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
