From: Philipp Hachtmann Date: Tue, 17 May 2016 11:40:38 +0000 (+0200) Subject: boot-maker: Fix warnings (missing header file) X-Git-Url: http://gitweb.hachti.de/?a=commitdiff_plain;h=52147402c19a69c9774bb256420a16233043d3fe;p=h316.git boot-maker: Fix warnings (missing header file) Signed-off-by: Philipp Hachtmann --- diff --git a/pc-tools/boot-maker/Makefile b/pc-tools/boot-maker/Makefile index b216c8f..51b7982 100644 --- a/pc-tools/boot-maker/Makefile +++ b/pc-tools/boot-maker/Makefile @@ -1,7 +1,9 @@ default: bmaker +CFLAGS=-Wall + bmaker: main.c - gcc -o $@ $< + gcc ${CFLAGS} -o $@ $< clean: @rm -f *.o bmaker diff --git a/pc-tools/boot-maker/main.c b/pc-tools/boot-maker/main.c index 721efae..0ac9f31 100644 --- a/pc-tools/boot-maker/main.c +++ b/pc-tools/boot-maker/main.c @@ -1,11 +1,10 @@ #include - +#include void output(unsigned short * data){ int c; char zero=0; unsigned char first_word=020; - unsigned short akt=0; for (c=0; c<100; c++) write (1,&zero,1); write (1,&first_word,1); // Anfangsadresse ausgeben c=020;