Avoid clang warning: if statement has empty body
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Apr 2014 13:47:35 +0000 (15:47 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 30 Apr 2014 13:47:35 +0000 (15:47 +0200)
src/sru_facet.c
src/srw.c

index 7821f66..0794997 100644 (file)
@@ -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)
index 5076ecc..f156921 100644 (file)
--- 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)
             {