Received: from eggs.gnu.org ([2001:4830:134:3::10]:32941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwzSs-00069Z-O4 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 15:54:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwzSl-0002rG-Jf for qemu-devel@nongnu.org; Tue, 17 Jun 2014 15:54:42 -0400 Message-ID: <53A09997.4030705@suse.de> Date: Tue, 17 Jun 2014 21:40:07 +0200 From: Alexander Graf MIME-Version: 1.0 References: <1403025508-19171-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1403025508-19171-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] target-ppc: Fix compiler warning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, qemu-ppc@nongnu.org On 17.06.14 19:18, Stefan Weil wrote: > gcc reports a warning which is usually wrong: > > target-ppc/dfp_helper.c: In function =E2=80=98dfp_get_digit=E2=80=99: > target-ppc/dfp_helper.c:417:1: warning: > control reaches end of non-void function [-Wreturn-type] > > The compiler shows the warning if assert is not marked with the noretur= n > attribute or if the code is compiled with -DNDEBUG. > > Using g_assert_not_reached better documents the intention and does not > have these problems. > > Signed-off-by: Stefan Weil Reviewed-by: Alexander Graf Please take it via -trivial. Alex