From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsl5N-0001MU-GI for qemu-devel@nongnu.org; Mon, 16 Dec 2013 22:12:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vsl5M-0007FS-Gb for qemu-devel@nongnu.org; Mon, 16 Dec 2013 22:12:41 -0500 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:36073 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsl5M-00071N-CH for qemu-devel@nongnu.org; Mon, 16 Dec 2013 22:12:40 -0500 Message-ID: <52AFC11B.7000707@comstyle.com> Date: Mon, 16 Dec 2013 22:12:27 -0500 From: Brad Smith MIME-Version: 1.0 References: <1386794231-18119-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1386794231-18119-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block/vvfat: Fix compiler warnings for OpenBSD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , qemu-devel Cc: Kevin Wolf , Stefan Hajnoczi On 11/12/13 3:37 PM, Stefan Weil wrote: > The buildbot shows these compiler warnings: > > block/vvfat.c: In function 'create_short_and_long_name': > block/vvfat.c:620: warning: array size (8) smaller than bound length (11) > block/vvfat.c:620: warning: array size (8) smaller than bound length (11) > block/vvfat.c:635: warning: array size (8) smaller than bound length (11) > block/vvfat.c:635: warning: array size (8) smaller than bound length (11) This is due to an OpenBSD specific GCC bounds checker. - gcc recognizes a new flag, -Wbounded, to perform basic checks on functions which accept buffers and sizes. An extra attribute, __bounded__, has been added to mark functions that can be checked this way. There was another issue here.. CC hw/display/exynos4210_fimd.o hw/display/exynos4210_fimd.c: In function 'exynos4210_fimd_reset': hw/display/exynos4210_fimd.c:1342: warning: array size (16) smaller than bound length (192) hw/display/exynos4210_fimd.c:1342: warning: array size (16) smaller than bound length (192) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.