grub/grub-core
Daniel Kiper 9c9bb1c0ac commands/i386/pc/sendkey: Fix "writing 1 byte into a region of size 0" build error
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;
        |   ~~~~~~~~~~~~~~~~~~^~~~~~

The volatile keyword addition helps and additionally assures us the
compiler will not optimize out fixed assignments.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Robbie Harwood <rharwood@redhat.com>
2022-03-14 23:05:00 +01:00
..
2022-03-14 15:43:58 +01:00
2022-03-14 15:44:45 +01:00
2022-03-14 15:45:03 +01:00
2022-03-14 15:45:30 +01:00
2022-03-14 15:46:38 +01:00
2022-03-14 15:46:55 +01:00
2022-03-14 15:47:13 +01:00
2022-03-14 16:00:06 +01:00
2022-03-14 16:00:27 +01:00
2022-03-14 16:00:48 +01:00
2017-08-14 16:27:10 +02:00
2017-05-03 12:49:31 +02:00
2013-04-27 02:00:16 +02:00
2017-05-03 12:49:31 +02:00