diff --git a/codecompletion/context.cpp b/codecompletion/context.cpp --- a/codecompletion/context.cpp +++ b/codecompletion/context.cpp @@ -66,6 +66,8 @@ QList< CompletionTreeItemPointer > CodeCompletionContext::completionItems(bool& abort, bool fullCompletion) { + (void)abort; + (void)fullCompletion; qCDebug(COMPLETION) << m_text; QList items; @@ -506,7 +508,7 @@ } else if(inBackQuotes) { - if(c != QLatin1Char('\\') && next == QLatin1Char('\`')) + if(c != QLatin1Char('\\') && next == QLatin1Char('`')) { inBackQuotes = false; continue; @@ -522,7 +524,7 @@ inQuotes = true; if(next == QLatin1Char('\"')) inDoubleQuotes = true; - if(next == QLatin1Char('\`')) + if(next == QLatin1Char('`')) inBackQuotes = true; } } diff --git a/codecompletion/items/completionitem.cpp b/codecompletion/items/completionitem.cpp --- a/codecompletion/items/completionitem.cpp +++ b/codecompletion/items/completionitem.cpp @@ -33,6 +33,8 @@ NormalDeclarationCompletionItem(decl, QExplicitlySharedDataPointer(), 0), m_prefix("") { + (void)context; + (void)inheritanceDepth; DUChainReadLocker lock; if(!decl) return; diff --git a/codecompletion/worker.cpp b/codecompletion/worker.cpp --- a/codecompletion/worker.cpp +++ b/codecompletion/worker.cpp @@ -33,6 +33,7 @@ const QString& followingText, const KDevelop::CursorInRevision& position) const { + (void)followingText; qCDebug(COMPLETION) << "Completion test"; //return go::CodeCompletionWorker::createCompletionContext(context, contextText, followingText, position); return new go::CodeCompletionContext(context, contextText, position); diff --git a/duchain/builders/contextbuilder.cpp b/duchain/builders/contextbuilder.cpp --- a/duchain/builders/contextbuilder.cpp +++ b/duchain/builders/contextbuilder.cpp @@ -185,7 +185,7 @@ } if(declaration && declaration->kind() == Declaration::Type) { - const RangeInRevision &range = editorFindRange(primaryExprResolveNode->literalValue, 0); +// const RangeInRevision &range = editorFindRange(primaryExprResolveNode->literalValue, 0); // Unused openContext(node->id, editorFindRange(primaryExprResolveNode->literalValue, 0), DUContext::Other, id); visitPrimaryExprResolve(node->primaryExprResolve); closeContext(); diff --git a/duchain/builders/declarationbuilder.cpp b/duchain/builders/declarationbuilder.cpp --- a/duchain/builders/declarationbuilder.cpp +++ b/duchain/builders/declarationbuilder.cpp @@ -678,6 +678,7 @@ go::GoFunctionDeclaration *declaration, const QualifiedIdentifier &identifier) { + (void)declaration; setComment(comment); DUChainWriteLocker lock; auto dec = openDefinition(identifier, editorFindRange(id, 0)); diff --git a/duchain/builders/typebuilder.cpp b/duchain/builders/typebuilder.cpp --- a/duchain/builders/typebuilder.cpp +++ b/duchain/builders/typebuilder.cpp @@ -285,6 +285,7 @@ go::GoFunctionType::Ptr TypeBuilder::parseSignature(go::SignatureAst *node, bool declareParameters, DUContext **parametersContext, DUContext **returnArgsContext, const QualifiedIdentifier &identifier, const QByteArray &comment) { + (void)comment; go::GoFunctionType::Ptr type(new go::GoFunctionType()); openType(type); diff --git a/duchain/expressionvisitor.cpp b/duchain/expressionvisitor.cpp --- a/duchain/expressionvisitor.cpp +++ b/duchain/expressionvisitor.cpp @@ -539,6 +539,7 @@ void ExpressionVisitor::visitBlock(BlockAst* node) { + (void)node; } diff --git a/duchain/helper.cpp b/duchain/helper.cpp --- a/duchain/helper.cpp +++ b/duchain/helper.cpp @@ -195,6 +195,7 @@ QList< Declaration* > getDeclarations(QualifiedIdentifier id, DUContext* context, bool searchInParent) { + (void)searchInParent; DUChainReadLocker lock; if(context) { diff --git a/golangparsejob.cpp b/golangparsejob.cpp --- a/golangparsejob.cpp +++ b/golangparsejob.cpp @@ -47,6 +47,8 @@ void GoParseJob::run(ThreadWeaver::JobPointer self, ThreadWeaver::Thread *thread) { + (void)self; + (void)thread; qCDebug(Go) << "GoParseJob succesfully created for document " << document(); UrlParseLock urlLock(document()); diff --git a/parser/parsesession.h b/parser/parsesession.h --- a/parser/parsesession.h +++ b/parser/parsesession.h @@ -96,10 +96,11 @@ void setCanonicalImports(QHash* imports); + /** * Returns doc comment preceding given token. - * GoDoc comments are multilined /*-style comments - * or several consecutive single-lined //-style comments + * GoDoc comments are multilined dash-star-style comments (/\*) + * or several consecutive single-lined dash-dash-style comments (//) * with no empty line between them. * Comment must start on a new line and end a line before given declaration. **/ diff --git a/parser/parsesession.cpp b/parser/parsesession.cpp --- a/parser/parsesession.cpp +++ b/parser/parsesession.cpp @@ -83,7 +83,7 @@ bool ParseSession::lex() { - KDevPG::Token token; +// KDevPG::Token token; int kind = go::Parser::Token_EOF; while((kind = m_lexer->read().kind) != go::Parser::Token_EOF) {