[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] block/vvfat: Fix compiler warnings for OpenBSD
From: |
Brad Smith |
Subject: |
Re: [Qemu-devel] [PATCH] block/vvfat: Fix compiler warnings for OpenBSD |
Date: |
Mon, 16 Dec 2013 22:12:27 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; PPC Mac OS X 10.5; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 TenFourFox/G5 Tenfourbird |
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.