From 5176062be1e2c2e8fd7f7a506acd990e711d9316 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 12 Jun 2013 15:15:44 +0200 Subject: [PATCH] Avoid statement-not-reached warnings --- src/cclfind.c | 1 - src/record_conv.c | 2 -- src/srwutil.c | 3 ++- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cclfind.c b/src/cclfind.c index 202e2a3..aa4b303 100644 --- a/src/cclfind.c +++ b/src/cclfind.c @@ -797,7 +797,6 @@ struct ccl_rpn_node *qualifiers_order(CCL_parser cclp, ccl_add_attr_numeric(p, attset, CCL_BIB1_REL, rel); return p; } - cclp->error_code = CCL_ERR_TERM_EXPECTED; return NULL; } diff --git a/src/record_conv.c b/src/record_conv.c index 5edc28b..ff95f92 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -195,7 +195,6 @@ static void *construct_xslt(const xmlNode *ptr, wrbuf_printf(wr_error, "Element : " "attribute 'stylesheet' expected"); nmem_destroy(nmem); - return 0; } else { @@ -241,7 +240,6 @@ static void *construct_xslt(const xmlNode *ptr, ")"); xmlFreeDoc(info->xsp_doc); nmem_destroy(info->nmem); - return 0; } else { diff --git a/src/srwutil.c b/src/srwutil.c index 3b052e9..38ee0d0 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -672,8 +672,9 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, YAZ_SRW_UNSUPP_OPERATION, operation); return 0; } -#endif +#else return 1; +#endif } return 2; } -- 1.7.10.4