From 52147402c19a69c9774bb256420a16233043d3fe Mon Sep 17 00:00:00 2001 From: Philipp Hachtmann Date: Tue, 17 May 2016 13:40:38 +0200 Subject: [PATCH] boot-maker: Fix warnings (missing header file) Signed-off-by: Philipp Hachtmann --- pc-tools/boot-maker/Makefile | 4 +++- pc-tools/boot-maker/main.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) 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; -- 2.32.0