Skip to content

Commit 02dcedf

Browse files
committed
Clean up global BuildOptions
Signed-off-by: Mario Bălănică <[email protected]>
1 parent 306ff58 commit 02dcedf

File tree

10 files changed

+10
-36
lines changed

10 files changed

+10
-36
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,6 @@ LcdGraphicsOutputInit (
266266
UINTN ConnectorCount;
267267
EFI_HANDLE *ConnectorHandles;
268268
UINTN Index;
269-
UINT32 HorizontalResolution;
270-
UINT32 VerticalResolution;
271269

272270
Status = LcdInstanceContructor (&Instance);
273271
if (EFI_ERROR (Status)) {

edk2-rockchip/Silicon/Rockchip/Drivers/OhciDxe/Ohci.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
99

1010
#include "Ohci.h"
1111

12-
STATIC OHCI_DEVICE_PATH OhciDevicePathProtocol = {
13-
{
14-
{
15-
HARDWARE_DEVICE_PATH,
16-
HW_VENDOR_DP,
17-
{
18-
(UINT8)(OFFSET_OF (OHCI_DEVICE_PATH, End)),
19-
(UINT8)(OFFSET_OF (OHCI_DEVICE_PATH, End) >> 8),
20-
},
21-
},
22-
EFI_CALLER_ID_GUID
23-
},
24-
0, // Instance
25-
{
26-
END_DEVICE_PATH_TYPE,
27-
END_ENTIRE_DEVICE_PATH_SUBTYPE,
28-
{
29-
sizeof (EFI_DEVICE_PATH_PROTOCOL),
30-
0
31-
}
32-
}
33-
};
34-
3512
/**
3613
Provides software reset for the USB host controller.
3714

edk2-rockchip/Silicon/Rockchip/Drivers/RkFvbDxe/RkFvbDxe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ FvbConfigureFlashInstance (
10551055
{
10561056
EFI_STATUS Status;
10571057
UINTN DataOffset;
1058-
UINTN VariableSize, FtwWorkingSize, FtwSpareSize, MemorySize;
1058+
UINTN VariableSize, FtwWorkingSize, FtwSpareSize;
10591059

10601060
// Locate SPI protocols
10611061
Status = gBS->LocateProtocol (

edk2-rockchip/Silicon/Rockchip/Library/DisplayLib/DwDpLib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ static int dw_dp_connector_init(ROCKCHIP_CONNECTOR_PROTOCOL *conn, DISPLAY_STATE
14061406
{
14071407
CONNECTOR_STATE *conn_state = &state->ConnectorState;
14081408
struct dw_dp *dp = DW_DP_FROM_CONNECTOR_PROTOCOL (conn);
1409-
int ret;
1409+
int ret = 0;
14101410

14111411
conn_state->OutputInterface |= dp->id ? VOP_OUTPUT_IF_DP1 : VOP_OUTPUT_IF_DP0;
14121412
conn_state->OutputMode = ROCKCHIP_OUT_MODE_AAAA;

edk2-rockchip/Silicon/Rockchip/Library/DisplayLib/DwDpLib.inf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,8 @@
4646
gRockchipConnectorProtocolGuid ## PRODUCES
4747
gDpPhyProtocolGuid ## CONSUMES
4848

49+
[BuildOptions]
50+
GCC:*_*_AARCH64_CC_FLAGS = -Wno-error=unused-function -Wno-error=unused-variable
51+
4952
[Depex]
5053
TRUE

edk2-rockchip/Silicon/Rockchip/Library/DisplayLib/DwMipiDsi2Lib.inf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@
4141
Silicon/Rockchip/RockchipPkg.dec
4242
Silicon/Rockchip/RK3588/RK3588.dec
4343

44-
[BuildOptions]
45-
4644
[Pcd]
4745

4846
[Protocols]
4947
gRockchipConnectorProtocolGuid ## PRODUCES
5048
gRockchipDsiPanelProtocolGuid ## CONSUMES
5149

50+
[BuildOptions]
51+
GCC:*_*_AARCH64_CC_FLAGS = -Wno-error=unused-function -Wno-error=unused-variable
52+
5253
[Depex]
5354
TRUE

edk2-rockchip/Silicon/Rockchip/RK3588/Drivers/UsbDpPhyDxe/UsbDpPhyDxe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static int udphy_disable(struct rockchip_udphy *udphy)
538538

539539
static int udphy_parse_lane_mux_data(struct rockchip_udphy *udphy, UINT8 *prop, UINTN num_lanes)
540540
{
541-
int ret, i;
541+
int i;
542542

543543
if (!prop) {
544544
dev_dbg(udphy->dev,

edk2-rockchip/Silicon/Rockchip/Rockchip.dsc.inc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@ FspiLib|Silicon/Rockchip/Library/FspiLib/FspiLib.inf
356356
###################################################################################################
357357

358358
[BuildOptions]
359-
# RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
360-
*_*_*_CC_FLAGS = -DDEFAULT_DARK
361-
GCC:*_*_AARCH64_CC_FLAGS = -Wno-error=uninitialized -Wno-error=stringop-overflow -Wno-error=unused-function -Wno-error=unused-variable
359+
GCC:*_*_AARCH64_CC_FLAGS = -Wno-error=unused-function
362360

363361
# Compile with symbols to support overlays.
364362
*_*_*_DTC_FLAGS = -@

edk2-rockchip/Silicon/Synopsys/DesignWare/Drivers/DwMmcHcDxe/DwMmcHcDxe.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,6 @@ DwMmcHcDriverBindingStart (
609609

610610
NON_DISCOVERABLE_DEVICE *Dev;
611611

612-
BOOLEAN MediaPresent;
613612
DWMMC_CARD_TYPE_DETECT_ROUTINE *Routine;
614613
UINT8 Index;
615614
UINT32 RoutineNum;

edk2-rockchip/Silicon/Synopsys/DesignWare/Drivers/DwMmcHcDxe/DwMmcHci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,6 @@ DwMmcHcStartDma (
595595
UINTN DevBase;
596596
UINT32 Ctrl;
597597
UINT32 Bmod;
598-
UINT32 Timeout;
599-
UINT32 Data;
600598

601599
// DevIo = Trb->Private->DevIo;
602600
DevBase = Trb->Private->DevBase;

0 commit comments

Comments
 (0)