Avoid statement-not-reached warnings
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 12 Jun 2013 13:15:44 +0000 (15:15 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 12 Jun 2013 13:16:05 +0000 (15:16 +0200)
src/cclfind.c
src/record_conv.c
src/srwutil.c

index 202e2a3..aa4b303 100644 (file)
@@ -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;
     }
         ccl_add_attr_numeric(p, attset, CCL_BIB1_REL, rel);
         return p;
     }
-    cclp->error_code = CCL_ERR_TERM_EXPECTED;
     return NULL;
 }
 
     return NULL;
 }
 
index 5edc28b..ff95f92 100644 (file)
@@ -195,7 +195,6 @@ static void *construct_xslt(const xmlNode *ptr,
         wrbuf_printf(wr_error, "Element <xslt>: "
                      "attribute 'stylesheet' expected");
         nmem_destroy(nmem);
         wrbuf_printf(wr_error, "Element <xslt>: "
                      "attribute 'stylesheet' expected");
         nmem_destroy(nmem);
-        return 0;
     }
     else
     {
     }
     else
     {
@@ -241,7 +240,6 @@ static void *construct_xslt(const xmlNode *ptr,
                          ")");
             xmlFreeDoc(info->xsp_doc);
             nmem_destroy(info->nmem);
                          ")");
             xmlFreeDoc(info->xsp_doc);
             nmem_destroy(info->nmem);
-            return 0;
         }
         else
         {
         }
         else
         {
index 3b052e9..38ee0d0 100644 (file)
@@ -672,8 +672,9 @@ int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu,
                                    YAZ_SRW_UNSUPP_OPERATION, operation);
             return 0;
         }
                                    YAZ_SRW_UNSUPP_OPERATION, operation);
             return 0;
         }
-#endif
+#else
         return 1;
         return 1;
+#endif
     }
     return 2;
 }
     }
     return 2;
 }