From: Dennis Schafroth Date: Fri, 23 Dec 2011 09:43:43 +0000 (+0100) Subject: Fix warnings X-Git-Tag: v1.6.7~9 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=7e12d1c3bb9e12d6786fc2e16178ee918b440e5a;p=pazpar2-moved-to-github.git Fix warnings --- diff --git a/src/client.c b/src/client.c index 9a81190..d8c239d 100644 --- a/src/client.c +++ b/src/client.c @@ -583,8 +583,9 @@ static void client_record_ingest(struct client *cl) if ((rec = ZOOM_resultset_record_immediate(resultset, offset))) { cl->record_offset++; - if (cl->session == 0) - ; + if (cl->session == 0) { + /* no operation */ + } else if (ZOOM_record_error(rec, &msg, &addinfo, 0)) { yaz_log(YLOG_WARN, "Record error %s (%s): %s (rec #%d)", @@ -1137,8 +1138,9 @@ static int apply_limit(struct session_database *sdb, wrbuf_puts(w_ccl, ")"); } - else if (!strncmp(s->value, "local:", 6)) - ; + else if (!strncmp(s->value, "local:", 6)) { + /* no operation */ + } else { yaz_log(YLOG_WARN, "Target %s: Bad limitmap '%s'",