From: Adam Dickmeiss Date: Wed, 30 Apr 2014 13:47:35 +0000 (+0200) Subject: Avoid clang warning: if statement has empty body X-Git-Tag: v5.1.2~13 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6b75f20c7564502ea2d5606888f7e2ff2c1968d6;p=yaz-moved-to-github.git Avoid clang warning: if statement has empty body --- diff --git a/src/sru_facet.c b/src/sru_facet.c index 7821f66..0794997 100644 --- a/src/sru_facet.c +++ b/src/sru_facet.c @@ -287,7 +287,7 @@ void yaz_sru_facet_response(ODR o, Z_FacetList **facetList, xmlNodePtr n) &cstr)) ; else if (yaz_match_xsd_integer(p2, "count", o, - &count)) + &count)) ; } if (cstr && count) diff --git a/src/srw.c b/src/srw.c index 5076ecc..f156921 100644 --- a/src/srw.c +++ b/src/srw.c @@ -657,6 +657,8 @@ int yaz_srw_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, else if (yaz_match_xsd_string(ptr, "facetSort", o, (char**) &facetSort)) ; + else + ; } if (!req->query) {