Nico Huber has uploaded this change for review.

View Change

internal: Fix warnings about unused constants

By adding more #if guards, fix warnings about unused constants that
are enabled by default in newer GCC versions.

Change-Id: Ib3b6d7c0c2fadc4faeab971673bfadb1a6d25919
Signed-off-by: Nico Huber <nico.h@gmx.de>
---
M internal.c
1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/69/22669/1
diff --git a/internal.c b/internal.c
index 4062b64..276e14b 100644
--- a/internal.c
+++ b/internal.c
@@ -131,6 +131,7 @@
int is_laptop = 0;
int laptop_ok = 0;

+#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr);
static void internal_chip_writew(const struct flashctx *flash, uint16_t val,
@@ -155,6 +156,7 @@
.chip_writel = internal_chip_writel,
.chip_writen = fallback_chip_writen,
};
+#endif

enum chipbustype internal_buses_supported = BUS_NONE;

@@ -358,6 +360,7 @@
}
#endif

+#if IS_X86 || IS_MIPS
static void internal_chip_writeb(const struct flashctx *flash, uint8_t val,
chipaddr addr)
{
@@ -400,3 +403,4 @@
mmio_readn((void *)addr, buf, len);
return;
}
+#endif

To view, visit change 22669. To unsubscribe, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib3b6d7c0c2fadc4faeab971673bfadb1a6d25919
Gerrit-Change-Number: 22669
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h@gmx.de>