Enable -Wextra

This commit is contained in:
Kimmo Kulovesi
2013-12-27 03:55:18 +02:00
parent f5955ba05a
commit dad7fd63ee
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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);