From: Adam Dickmeiss Date: Wed, 12 Jun 2013 13:15:44 +0000 (+0200) Subject: Avoid statement-not-reached warnings X-Git-Tag: v4.2.60~3 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=5176062be1e2c2e8fd7f7a506acd990e711d9316;p=yaz-moved-to-github.git Avoid statement-not-reached warnings --- 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; }