Received: from eggs.gnu.org ([208.118.235.92]:47539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1ImB-0005Mf-F1 for qemu-devel@nongnu.org; Sat, 25 Feb 2012 09:39:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1Im5-0005mY-Gt for qemu-devel@nongnu.org; Sat, 25 Feb 2012 09:39:07 -0500 Message-ID: <4F48F281.901@weilnetz.de> Date: Sat, 25 Feb 2012 15:38:57 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1330178223-31717-1-git-send-email-sw@weilnetz.de> <4F48EDA3.2080700@redhat.com> In-Reply-To: <4F48EDA3.2080700@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vnc: Add break statement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: QEMU Trivial , Anthony Liguori , qemu-devel@nongnu.org Am 25.02.2012 15:18, schrieb Eric Blake: > On 02/25/2012 06:57 AM, Stefan Weil wrote: >> This was not a bug, but it is not common practice to omit the break statement >> from the last case statement before an empty default case. >> >> Any change of the default case would introduce a bug. >> >> This was reported as a warning by splint. >> >> Signed-off-by: Stefan Weil >> --- >> ui/vnc-enc-hextile-template.h | 1 + >> 1 files changed, 1 insertions(+), 0 deletions(-) >> >> diff --git a/ui/vnc-enc-hextile-template.h b/ui/vnc-enc-hextile-template.h >> index b9f9f5e..a7310e1 100644 >> --- a/ui/vnc-enc-hextile-template.h >> +++ b/ui/vnc-enc-hextile-template.h >> @@ -175,6 +175,7 @@ static void CONCAT(send_hextile_tile_, NAME)(VncState *vs, >> /* we really don't have to invalidate either the bg or fg >> but we've lost the old values. oh well. */ >> } >> + break; > TABs vs. space looks odd. Does this file also need a whitespace cleanup? 2 times yes. It's not the only file with tabs instead of spaces.