aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-11-21 08:20:51 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-11-21 08:20:51 +0100
commiteeaf62eba40b81604c1208d4d74bdeebfccd6e15 (patch)
treeb284900f85c88c7442b2f54af027b37c4fa94f34
parent036663873024fb364a913d01c101bac1c733e629 (diff)
downloadbfc-eeaf62eba40b81604c1208d4d74bdeebfccd6e15.tar.gz
bfc-eeaf62eba40b81604c1208d4d74bdeebfccd6e15.tar.bz2
bfc-eeaf62eba40b81604c1208d4d74bdeebfccd6e15.zip
Fixing #1
-rw-r--r--Makefile2
-rw-r--r--bfc.c4
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");