aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compile.c2
-rw-r--r--tomo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 41915f60..81627232 100644
--- a/compile.c
+++ b/compile.c
@@ -1387,7 +1387,7 @@ CORD compile_statement(env_t *env, ast_t *ast)
}
default:
if (!is_discardable(env, ast))
- code_err(ast, "The result of this statement cannot be discarded");
+ code_err(ast, "The %T result of this statement cannot be discarded", get_type(env, ast));
return CORD_asprintf("(void)%r;", compile(env, ast));
}
}
diff --git a/tomo.c b/tomo.c
index 40cf3de2..4b72da1e 100644
--- a/tomo.c
+++ b/tomo.c
@@ -29,7 +29,7 @@ typedef enum { MODE_TRANSPILE = 0, MODE_COMPILE_OBJ = 1, MODE_COMPILE_SHARED_OBJ
static bool verbose = false;
static bool show_codegen = false;
-static CORD autofmt, cconfig, cflags, ldlibs, ldflags, cc;
+static CORD autofmt = CORD_EMPTY, cconfig = CORD_EMPTY, cflags = CORD_EMPTY, ldlibs = CORD_EMPTY, ldflags = CORD_EMPTY, cc = CORD_EMPTY;
static int transpile_header(env_t *base_env, const char *filename, bool force_retranspile);
static int transpile_code(env_t *base_env, const char *filename, bool force_retranspile);