summaryrefslogtreecommitdiff
path: root/lsp-parse.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 17:33:29 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 17:33:29 -0500
commit5f7af06a9085835a3d1ad3a51374c245859d7d97 (patch)
treef8ea4ad4d809334131b479ff8b9c0bd125c45f29 /lsp-parse.c
parente4aac4859511cb22ed84946eb5510cd7fa14e147 (diff)
fix GCC warnings
Diffstat (limited to 'lsp-parse.c')
-rw-r--r--lsp-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp-parse.c b/lsp-parse.c
index 4b05f29..07837b5 100644
--- a/lsp-parse.c
+++ b/lsp-parse.c
@@ -208,7 +208,7 @@ static bool parse_completion(LSP *lsp, const JSON *json, LSPResponse *response)
item->text_edit = (LSPTextEdit) {
.type = LSP_TEXT_EDIT_PLAIN,
.at_cursor = true,
- .range = {0},
+ .range = {{0}},
.new_text = item->label
};
@@ -611,7 +611,7 @@ static void process_message(LSP *lsp, JSON *json) {
LSPRequest initialized = {
.type = LSP_REQUEST_INITIALIZED,
- .data = {0},
+ .data = {{0}},
};
write_request(lsp, &initialized);
// we can now send requests which have nothing to do with initialization