Skip to content

Commit f7eb577

Browse files
committed
yes
1 parent 4f6675f commit f7eb577

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

cli.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ static bool has_prefix(const char *s, const char *pre) {
1717
}
1818

1919
void print_usage(int argc, char **argv) {
20+
(void)argc;
2021

2122
printf(BOLD("-- ccomptime™ v0.0.1 --") "\nUSAGE"
2223
": %s [clang-like "

tests/test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ int main(int argc, char **argv) {
4242
#include "./simple_inline_comptime/test.c"
4343
#include "./top_level_comptime_block/test.c"
4444

45-
int passed = total_tests_run - total_tests_failed;
4645
double elapsed_ms = ms_since(t0);
4746

4847
printf("\n\n================================ TEST SUMMARY "

tests/test.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,12 @@ TestResult stdout_includes_else_fail(char *stdout, char *includes,
9393
if (!result) { \
9494
fprintf(stderr, RED("\n\n%s\n\n"), comp_stderr.items); \
9595
log_test_result((TestResult){.success = false, \
96-
.message = test_dir, \
96+
.message = (char *)test_dir, \
9797
.error = "failed to compile test"}); \
9898
break; \
99-
}; \
100-
int COMPILED = 1;
99+
};
101100

102101
#define EXEC_CASE() \
103-
assert(COMPILED && "must compile first use COMPILE_CASE"); \
104102
nob_cmd_append(&cmd, r("out")); \
105103
int exec_result = nob_cmd_run(&cmd, .stdout_path = r("exec-stdout.txt"), \
106104
.stderr_path = r("exec-stderr.txt")); \
@@ -114,7 +112,7 @@ TestResult stdout_includes_else_fail(char *stdout, char *includes,
114112
fprintf(stdout, GRAY("\n\n%s"), exec_stdout.items); \
115113
fprintf(stderr, RED("\n\n%s\n\n"), exec_stderr.items); \
116114
log_test_result((TestResult){.success = false, \
117-
.message = test_dir, \
115+
.message = (char *)test_dir, \
118116
.error = "failed to exec test"}); \
119117
break; \
120118
};

tree_passes.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,6 @@ static void strip_comptime_dependencies(WalkContext *const ctx,
416416
nob_log(VERBOSE, MAGENTA("Within a comptime dependency :: !"));
417417

418418
if (local.function_definition_root) {
419-
Slice r = ts_node_range(*local.function_definition_root, src);
420-
421419
nob_log(VERBOSE,
422420
ORANGE("Stripping comptime dependent function (%d) '%.*s'"),
423421
ts_node_range(*local.function_definition_root, src).len,

0 commit comments

Comments
 (0)