aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-03-04 09:25:02 +0000
committergingerBill <bill@gingerbill.org>2018-03-04 09:25:02 +0000
commit584dffea1420b1e2ce98922f8dd5cf63e5fb8872 (patch)
treee06a3a30fe31a90c2fcb77eb0fa4667d138f86ff /src/checker.cpp
parent41b6d215bb381ecb4190acd8cbde481442b7ab85 (diff)
Remove dead code; fix referencing of a type assertion in a selector expression
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 8e3e8838c..73d9942b6 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -39,7 +39,7 @@ void scope_reset(Scope *scope) {
}
i32 is_scope_an_ancestor(Scope *parent, Scope *child) {
- isize i = 0;
+ i32 i = 0;
while (child != nullptr) {
if (parent == child) {
return i;
@@ -612,8 +612,6 @@ void init_checker(Checker *c, Parser *parser) {
if (global_error_collector.count > 0) {
gb_exit(1);
}
- BuildContext *bc = &build_context;
-
gbAllocator a = heap_allocator();
c->parser = parser;