From: Ruben d'Arco Date: Sun, 19 May 2013 09:49:27 +0000 (+0200) Subject: Avoid warning X-Git-Tag: rec-3.6.0-rc1~556^2~3^2~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ab4cfca0b632db6a9bd660df9651952acca5cdb;p=pdns Avoid warning rfc2136handler.cc: In member function ‘uint16_t PacketHandler::performUpdate(const string&, const DNSRecord*, DomainInfo*, bool, bool*, bool*, NSEC3PARAMRecordContent*, bool*)’: rfc2136handler.cc:475:14: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] --- diff --git a/pdns/rfc2136handler.cc b/pdns/rfc2136handler.cc index d6e10a4fa..2ae5e4fcb 100644 --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@ -472,10 +472,10 @@ uint16_t PacketHandler::performUpdate(const string &msgPrefix, const DNSRecord * else foundEnt = true; } - if (!foundRealRR) + if (!foundRealRR) { if (foundEnt) // only delete the ENT if we actually found one. delnonterm.insert(shorter); - else + } else break; } }