ifdtool: Enable warnings as errors, and fix any issues
Change-Id: Id462a10c2affac54ec48a1cc2a5b2ca66112848e Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/11613 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
66cc843f3d
commit
71a7ba2e5d
|
@ -22,7 +22,7 @@ PROGRAM = ifdtool
|
|||
CC = gcc
|
||||
INSTALL = /usr/bin/install
|
||||
PREFIX = /usr/local
|
||||
CFLAGS = -O2 -g -Wall -W
|
||||
CFLAGS = -O2 -g -Wall -W -Werror
|
||||
LDFLAGS =
|
||||
|
||||
OBJS = ifdtool.o
|
||||
|
|
|
@ -42,7 +42,7 @@ static const struct region_name region_names[MAX_REGIONS] = {
|
|||
{ "Reserved", "res1" },
|
||||
{ "Reserved", "res2" },
|
||||
{ "Reserved", "res3" },
|
||||
{ "EC" "ec" },
|
||||
{ "EC", "ec" },
|
||||
};
|
||||
|
||||
static fdbar_t *find_fd(char *image, int size)
|
||||
|
@ -729,6 +729,9 @@ static void set_em100_mode(char *filename, char *image, int size)
|
|||
case IFD_VERSION_2:
|
||||
freq = SPI_FREQUENCY_17MHZ;
|
||||
break;
|
||||
default:
|
||||
freq = SPI_FREQUENCY_17MHZ;
|
||||
break;
|
||||
}
|
||||
|
||||
fcba->flcomp &= ~(1 << 30);
|
||||
|
|
Loading…
Reference in New Issue