Skip to content

Commit b3209fb

Browse files
committed
Fix compiler warnings
1 parent 224d814 commit b3209fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "version.h"
1212
#include "vm.h"
1313

14-
static void repl();
14+
static void repl(void);
1515
static char *readFile(const char *path);
1616
static void runFile(const char *path);
1717
static void runCode(const char *source);
@@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
7575
return 64;
7676
}
7777

78-
static void repl() {
78+
static void repl(void) {
7979
fprintf(stderr, "========================================\n");
8080
fprintf(stderr, "REPL %30s clox\n\n", CLOX_VERSION);
8181
fprintf(stderr, "Enter code or type 'exit' to quit.\n\n");
@@ -147,4 +147,4 @@ static void runCode(const char *source) {
147147

148148
if (result == INTERPRET_RUNTIME_ERROR)
149149
exit(70);
150-
}
150+
}

0 commit comments

Comments
 (0)