From dad7fd63ee7300acd0bf9e4353b17d12403d4abb Mon Sep 17 00:00:00 2001 From: Kimmo Kulovesi Date: Fri, 27 Dec 2013 03:55:18 +0200 Subject: [PATCH] Enable -Wextra --- Makefile | 2 +- bin2ihex.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 97723a5..4bb5fe0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC=clang -CFLAGS=-Wall -std=c99 -pedantic +CFLAGS=-Wall -std=c99 -pedantic -Wextra OBJS = kk_ihex.o kk_ihex_write.o kk_ihex_read.o BINS = bin2ihex ihex2bin diff --git a/bin2ihex.c b/bin2ihex.c index 22a495c..a4be93e 100644 --- a/bin2ihex.c +++ b/bin2ihex.c @@ -31,6 +31,8 @@ main (void) { return EXIT_SUCCESS; } +#pragma clang diagnostic ignored "-Wunused-parameter" + void ihex_flush_buffer(struct ihex_state *ihex, char *buffer, char *eptr) { *eptr = '\0'; (void) fputs(buffer, stdout);