summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/native.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b26cd39..baa81e8 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CC ?= gcc
AR ?= ar
CHK_SOURCES ?= src/main.c $(SRCS)
override CPPFLAGS += -MMD -MP
-override CFLAGS += -fPIC --std=c99 -g -Ideps/ -Isrc/ -Iinclude/ -Wall -Wextra -Wpedantic -Wconversion -Wformat-security -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wfloat-equal -Wundef -Wpointer-arith -Wbad-function-cast -Wlogical-op -Wmissing-braces -Wcast-align -Wstrict-overflow=5 # -ftrapv
+override CFLAGS += -Oz -fPIC --std=c99 -g -Ideps/ -Isrc/ -Iinclude/ -Wall -Wextra -Wpedantic -Wconversion -Wformat-security -Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnull-dereference -Wfloat-equal -Wundef -Wpointer-arith -Wbad-function-cast -Wlogical-op -Wmissing-braces -Wcast-align -Wstrict-overflow=5 -fwrapv # -ftrapv
override LDFLAGS += -g -static
BUILD = build_$(CC)
diff --git a/src/native.c b/src/native.c
index 53927ad..b8cde3d 100644
--- a/src/native.c
+++ b/src/native.c
@@ -111,7 +111,7 @@ void pit_repl(pit_runtime *rt) {
bufcap *= 2;
buf = realloc(buf, bufcap);
}
- pit_value res;
+ pit_value res = PIT_NIL;
pit_lexer lex;
pit_parser parse;
bool eof = false;