From ab2a836d57ad356e1f332b57fa34c91ee30dd12b Mon Sep 17 00:00:00 2001 From: Riatre Foo Date: Wed, 31 Jan 2018 01:03:46 +0800 Subject: [PATCH] Remove unused variable `ex` in initialize.cc (#376) --- src/messages/initialize.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/initialize.cc b/src/messages/initialize.cc index adedd6088..f93f7bf9a 100644 --- a/src/messages/initialize.cc +++ b/src/messages/initialize.cc @@ -496,7 +496,7 @@ struct InitializeHandler : BaseMessageHandler { JsonReader json_reader{&reader}; try { Reflect(json_reader, *config); - } catch (std::invalid_argument& ex) { + } catch (std::invalid_argument&) { // This will not trigger because parse error is handled in // MessageRegistry::Parse in language_server_api.cc }