summaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2018-12-19 11:54:47 +0000
committerNico Huber <nico.h@gmx.de>2019-02-03 18:31:45 +0000
commit93e1625f9fb5f1080c40685488d006b2982062d7 (patch)
tree810e5b2807d6f5c102059e2b8a99a91a17c8f9c7 /ichspi.c
parentd82be7b2be34fb3273781e72f5d8e52a3103b961 (diff)
downloadflashrom-93e1625f9fb5f1080c40685488d006b2982062d7.tar.gz
flashrom-93e1625f9fb5f1080c40685488d006b2982062d7.tar.bz2
flashrom-93e1625f9fb5f1080c40685488d006b2982062d7.zip
Fix several -Wold-style-declaration warnings
Change-Id: Iffe5e652779a13ee7f64696fb5df4a781fe9a632 Signed-off-by: Richard Hughes <richard@hughsie.com> Reviewed-on: https://review.coreboot.org/c/30404 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ichspi.c b/ichspi.c
index 9eb24a99d..21442084f 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -676,7 +676,7 @@ static int program_opcodes(OPCODES *op, int enable_undo)
* - at least one program opcode (BYTE_PROGRAM, AAI_WORD_PROGRAM, ...?)
* - necessary preops? (EWSR, WREN, ...?)
*/
-static int ich_missing_opcodes()
+static int ich_missing_opcodes(void)
{
uint8_t ops[] = {
JEDEC_READ,