Skip to content

Commit 286ad16

Browse files
author
Barnabás Domozi
committed
Fix compilation warnings.
1 parent e560632 commit 286ad16

File tree

3 files changed

+26
-23
lines changed

3 files changed

+26
-23
lines changed

plugins/python/service/include/service/pythonservice.h

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ class PythonServiceHandler : virtual public LanguageServiceIf
4949
const core::AstNodeId& astNodeId_) override;
5050

5151
void getDocumentation(
52-
std::string& return_,
53-
const core::AstNodeId& astNodeId_) override {};
52+
std::string&,
53+
const core::AstNodeId&) override {};
5454

5555
void getProperties(
5656
std::map<std::string, std::string>& return_,
@@ -97,35 +97,35 @@ class PythonServiceHandler : virtual public LanguageServiceIf
9797
const std::int32_t referenceId_) override;
9898

9999
void getReferencesInFile(
100-
std::vector<AstNodeInfo>& return_,
101-
const core::AstNodeId& astNodeId_,
102-
const std::int32_t referenceId_,
103-
const core::FileId& fileId_,
104-
const std::vector<std::string>& tags_) override {};
100+
std::vector<AstNodeInfo>&,
101+
const core::AstNodeId&,
102+
const std::int32_t,
103+
const core::FileId&,
104+
const std::vector<std::string>&) override {};
105105

106106
void getReferencesPage(
107-
std::vector<AstNodeInfo>& return_,
108-
const core::AstNodeId& astNodeId_,
109-
const std::int32_t referenceId_,
110-
const std::int32_t pageSize_,
111-
const std::int32_t pageNo_) override {};
107+
std::vector<AstNodeInfo>&,
108+
const core::AstNodeId&,
109+
const std::int32_t,
110+
const std::int32_t,
111+
const std::int32_t) override {};
112112

113113
void getFileReferenceTypes(
114-
std::map<std::string, std::int32_t>& return_,
115-
const core::FileId& fileId_) override {};
114+
std::map<std::string, std::int32_t>&,
115+
const core::FileId&) override {};
116116

117117
void getFileReferences(
118-
std::vector<AstNodeInfo>& return_,
119-
const core::FileId& fileId_,
120-
const std::int32_t referenceId_) override {};
118+
std::vector<AstNodeInfo>&,
119+
const core::FileId&,
120+
const std::int32_t) override {};
121121

122122
std::int32_t getFileReferenceCount(
123-
const core::FileId& fileId_,
124-
const std::int32_t referenceId_) override {};
123+
const core::FileId&,
124+
const std::int32_t) override { return 0; };
125125

126126
void getSyntaxHighlight(
127-
std::vector<SyntaxHighlight>& return_,
128-
const core::FileRange& range_) override {};
127+
std::vector<SyntaxHighlight>&,
128+
const core::FileRange&) override {};
129129

130130
enum ReferenceType
131131
{

plugins/python/service/src/pythonservice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void PythonServiceHandler::getDiagramLegend(
213213

214214
void PythonServiceHandler::getFileDiagramTypes(
215215
std::map<std::string, std::int32_t>& return_,
216-
const core::FileId& fileId_)
216+
const core::FileId&)
217217
{
218218
#ifndef NDEBUG
219219
LOG(info) << "[PYTHONSERVICE] " << __func__;
@@ -317,7 +317,7 @@ void PythonServiceHandler::getReferences(
317317
std::vector<AstNodeInfo>& return_,
318318
const core::AstNodeId& astNodeId_,
319319
const std::int32_t referenceId_,
320-
const std::vector<std::string>& tags_)
320+
const std::vector<std::string>&)
321321
{
322322
#ifndef NDEBUG
323323
LOG(info) << "[PYTHONSERVICE] " << __func__;

util/src/graph.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,9 @@ std::string Graph::output(Graph::Format format_) const
289289
case Graph::CAIRO_SVG:
290290
render_format = "svg:cairo";
291291
break;
292+
default:
293+
__builtin_unreachable();
294+
break;
292295
}
293296

294297
gvRenderData(

0 commit comments

Comments
 (0)