Skip to content

Commit 8c2e735

Browse files
committed
rockchip/edid: fix label followed by a declaration
placing a label directly before a declaration is officially supported in C23, but triggers an error on clang when compiling with older C standards Bug: #283 Signed-off-by: Pepper Gray <hello@peppergray.xyz>
1 parent 54c3bbe commit 8c2e735

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • edk2-rockchip/Silicon/Rockchip/Drivers/LcdGraphicsOutputDxe

‎edk2-rockchip/Silicon/Rockchip/Drivers/LcdGraphicsOutputDxe/Edid.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ EdidGetPreferredModeDetailed (
463463
} else {
464464
switch (Edid[0x00]) {
465465
case EDID_EXTENSION_CEA_861:
466+
{
466467
UINT8 DtdOffset = Edid[0x02];
467468
UINT8 DtdEnd = EDID_BLOCK_SIZE - 1;
468469

@@ -473,6 +474,7 @@ EdidGetPreferredModeDetailed (
473474
DetailedTimings = (EDID_DETAILED_TIMING *)(Edid + DtdOffset);
474475
DetailedTimingsCount = (DtdEnd - DtdOffset) / sizeof (EDID_DETAILED_TIMING);
475476
break;
477+
}
476478
case EDID_EXTENSION_VTB:
477479
if (Edid[0x01] != 1) {
478480
continue;

0 commit comments

Comments
 (0)