Silence clang warnings

This commit is contained in:
Andrew Scott 2024-08-20 13:28:11 -04:00
parent ad5dfd4146
commit 7cd2554e7d
Signed by: a
GPG key ID: 7CD5A5977E4931C1
2 changed files with 7 additions and 7 deletions

12
main.c
View file

@ -6,7 +6,7 @@
#include "test_gc.h"
#include "vm.h"
void test_int_alloc() {
void test_int_alloc(void) {
struct virtualMachine *vm = initVM();
pushInt(vm, 100);
pushInt(vm, 1000);
@ -18,7 +18,7 @@ void test_int_alloc() {
free(vm);
}
void test_pair_alloc() {
void test_pair_alloc(void) {
struct virtualMachine *vm = initVM();
pushInt(vm, 100);
pushInt(vm, 1000);
@ -32,7 +32,7 @@ void test_pair_alloc() {
free(vm);
}
void test_obj_count() {
void test_obj_count(void) {
struct virtualMachine *vm = initVM();
pushInt(vm, 100);
pushInt(vm, 1000);
@ -45,7 +45,7 @@ void test_obj_count() {
free(vm);
}
void test_nested_pair() {
void test_nested_pair(void) {
struct virtualMachine *vm = initVM();
pushInt(vm, 100);
pushInt(vm, 1000);
@ -61,7 +61,7 @@ void test_nested_pair() {
free(vm);
}
void test_unreachable() {
void test_unreachable(void) {
struct virtualMachine *vm = initVM();
pushInt(vm, 100);
pushInt(vm, 1000);
@ -74,7 +74,7 @@ void test_unreachable() {
free(vm);
}
void test_auto_gc() {
void test_auto_gc(void) {
struct virtualMachine *vm = initVM();
for (size_t i = 0; i < 505; ++i) {

2
vm.h
View file

@ -40,7 +40,7 @@ struct garbageObject *initGarbage(struct virtualMachine *vm,
enum garbageData type);
// Create a new VM
struct virtualMachine *initVM();
struct virtualMachine *initVM(void);
// Generic function to push data onto the VM stack
void push(struct virtualMachine *vm, struct garbageObject *value);