summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-09 23:12:09 -0500
committerpommicket <pommicket@gmail.com>2023-01-09 23:12:09 -0500
commitedd5188dfba93b8ffe376d0c194804f35f43dcaa (patch)
tree9e1ef13632c9e0fbfd175bc82c79f874b2b15229 /main.c
parent7f0255cb40bb85276191ec3ddffe507e53abf2ac (diff)
misc windows fixes
Diffstat (limited to 'main.c')
-rw-r--r--main.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/main.c b/main.c
index 21a53d6..90d273a 100644
--- a/main.c
+++ b/main.c
@@ -1,10 +1,6 @@
/*
@TODO:
-- make sure buffer_load_file/buffer_new_file handle paths with forward slashes on windows
-- why are all requests failing on windows?
-- are we freeing process if process_run(_ex) fails?
-- test time_last_modified (windows)
-- add note to README about compile_commands.json
+- get Makefile to use ninja
- rust-analyzer bug reports:
- bad json can give "Unexpected error: client exited without proper shutdown sequence"
- containerName not always given in workspace/symbols
@@ -247,7 +243,18 @@ static LONG WINAPI error_signal_handler(EXCEPTION_POINTERS *info) {
} else {
die(CRASH_STARTUP_MESSAGE);
}
+
+ // MSVC is smart here and realizes this code is unreachable.
+ // that said, I'm worried about not returning a value here for older MSVC versions
+ // and just in general.
+ #if _MSC_VER
+ #pragma warning(push)
+ #pragma warning(disable:4702)
+ #endif
return EXCEPTION_EXECUTE_HANDLER;
+ #if _MSC_VER
+ #pragma warning(pop)
+ #endif
}
#endif
@@ -309,6 +316,7 @@ int main(int argc, char **argv) {
command_init();
color_init();
+
// read command-line arguments
const char *starting_filename = NULL;
switch (argc) {