From 6b75f20c7564502ea2d5606888f7e2ff2c1968d6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 30 Apr 2014 15:47:35 +0200 Subject: [PATCH] Avoid clang warning: if statement has empty body --- src/sru_facet.c | 2 +- src/srw.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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) { -- 1.7.10.4