From eeaf62eba40b81604c1208d4d74bdeebfccd6e15 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 21 Nov 2021 08:20:51 +0100 Subject: Fixing #1 --- Makefile | 2 +- bfc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b405f94..07a867d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC = gcc -CCFLAGS = -Wall -Wextra +CCFLAGS = -Wall -Wextra -std=c99 NASM = nasm ifeq ($(shell uname),Linux) diff --git a/bfc.c b/bfc.c index ee4b699..30098d1 100644 --- a/bfc.c +++ b/bfc.c @@ -12,7 +12,7 @@ static size_t label_stack_frame = 0; int main(int argc, char *argv[]) { - int option; + // int option; /* while ((option = getopt(argc, argv, "So:b:")) != -1) */ /* { */ @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) c = fgetc(input_file); break; default: - // error + break; } } fprintf(output_file, "\n"); -- cgit