summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2015-09-10 08:37:42 -0700
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2015-09-11 02:02:10 +0000
commit71a7ba2e5d84198e63464287c8543d23c5d75e48 (patch)
tree842ecb74edb6ac9a2c5cccfdb400e8367d4cd3f7 /util
parent66cc843f3d70a38c44f49077bcc7663ad685aef4 (diff)
downloadcoreboot-71a7ba2e5d84198e63464287c8543d23c5d75e48.tar.xz
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>
Diffstat (limited to 'util')
-rw-r--r--util/ifdtool/Makefile2
-rw-r--r--util/ifdtool/ifdtool.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/util/ifdtool/Makefile b/util/ifdtool/Makefile
index a234ded27b..02a02c45eb 100644
--- a/util/ifdtool/Makefile
+++ b/util/ifdtool/Makefile
@@ -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
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index 214998c939..e6ed110c64 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -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);