Skip to content

Commit 6826f9b

Browse files
committed
Fix warnings
1 parent 8098b4c commit 6826f9b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/dsql/pass1.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ bool InvalidReferenceFinder::visit(ExprNode* node)
279279
if (!node)
280280
return false;
281281

282-
bool invalid = false;
283-
284282
// ASF: What we do in this function is the verification of all fields/dbkeys (or any parent
285283
// expression involving them) are present in the passed node list.
286284
// That makes valid:
@@ -732,7 +730,7 @@ void PASS1_ambiguity_check(DsqlCompilerScratch* dsqlScratch,
732730

733731
bool PASS1_compare_alias(const QualifiedName& contextAlias, const QualifiedName& lookupAlias)
734732
{
735-
return lookupAlias == contextAlias || lookupAlias.schema.isEmpty() && lookupAlias.object == contextAlias.object;
733+
return lookupAlias == contextAlias || (lookupAlias.schema.isEmpty() && lookupAlias.object == contextAlias.object);
736734
}
737735

738736

@@ -1443,8 +1441,6 @@ void PASS1_expand_select_node(DsqlCompilerScratch* dsqlScratch, ExprNode* node,
14431441

14441442
if (context->ctx_relation)
14451443
{
1446-
thread_db* const tdbb = JRD_get_thread_data();
1447-
14481444
for (dsql_fld* field = context->ctx_relation->rel_fields; field; field = field->fld_next)
14491445
{
14501446
DEV_BLKCHK(field, dsql_type_fld);

src/intl/charsets/cs_koi8u.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
-------------------------------------------- */
88

99

10-
static const int UNICODE_REPLACEMENT_CHARACTER = 0xFFFD;
1110
static const int CANT_MAP_CHARACTER = 0;
1211

1312
static const USHORT to_unicode_map[256] = {

src/jrd/optimizer/Optimizer.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3165,8 +3165,6 @@ bool Optimizer::getEquiJoinKeys(NestConst<ValueExprNode>& node1,
31653165
string Optimizer::getStreamName(StreamType stream)
31663166
{
31673167
const auto tail = &csb->csb_rpt[stream];
3168-
const auto* relation = tail->csb_relation;
3169-
const auto* procedure = tail->csb_procedure;
31703168
const auto* alias = tail->csb_alias;
31713169

31723170
string name = tail->getName().toQuotedString();

0 commit comments

Comments
 (0)