summaryrefslogtreecommitdiff
path: root/util/ifdtool
diff options
context:
space:
mode:
Diffstat (limited to 'util/ifdtool')
-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);