[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/6] commands/i386/pc/sendkey: Fix "writing 1 byte into a reg
From: |
Daniel Kiper |
Subject: |
Re: [PATCH 3/6] commands/i386/pc/sendkey: Fix "writing 1 byte into a region of size 0" build error |
Date: |
Fri, 11 Mar 2022 22:37:08 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Fri, Mar 11, 2022 at 11:09:16AM -0600, Glenn Washburn wrote:
> On Fri, 11 Mar 2022 00:35:57 +0100
> Daniel Kiper <daniel.kiper@oracle.com> wrote:
>
> > Latest GCC may complain in that way:
> >
> > commands/i386/pc/sendkey.c: In function ‘grub_sendkey_postboot’:
> > commands/i386/pc/sendkey.c:223:21: error: writing 1 byte into a region of
> > size 0 [-Werror=stringop-overflow=]
> > 223 | *((char *) 0x41a) = 0x1e;
> > | ~~~~~~~~~~~~~~~~~~^~~~~~
>
> I'm curious why I'm not seeing this. It looks like the target was
> i386-pc, correct? I'm guessing this is on GCC11. What compiler are you
Debian GNU/Linux bookworm/sid
gcc version 11.2.0 (Debian 11.2.0-16)
> using? Any extra CFLAGS? Anything else I might need to reproduce?
IIRC e.g. ./configure --target=i386 --with-platform=pc
Daniel