diff --git a/src/compiler/codegen_general.c b/src/compiler/codegen_general.c index ef365ff05..06e0cc5cf 100644 --- a/src/compiler/codegen_general.c +++ b/src/compiler/codegen_general.c @@ -288,7 +288,6 @@ AlignSize type_alloca_alignment(Type *type) return align; } - void codegen_setup_object_names(Module *module, const char **ir_filename, const char **asm_filename, const char **object_filename) { const char *result = module_create_object_file_name(module); diff --git a/src/utils/find_msvc.c b/src/utils/find_msvc.c index c990989f2..a061c98e0 100644 --- a/src/utils/find_msvc.c +++ b/src/utils/find_msvc.c @@ -35,7 +35,7 @@ static char *find_visual_studio(void) char *path = win_utf16to8(_wgetenv(L"ProgramFiles(x86)")); scratch_buffer_clear(); scratch_buffer_printf("\"%s\\Microsoft Visual Studio\\Installer\\vswhere.exe\" -latest -prerelease -property installationPath -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -products *", path); - const char *install_path = NULL; + char *install_path = NULL; // Call vswhere.exe if (!execute_cmd_failable(scratch_buffer_to_string(), &install_path, NULL))