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:
Alexandru Gagniuc 2015-09-10 08:37:42 -07:00
parent 66cc843f3d
commit 71a7ba2e5d
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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);