Skip to content

Commit a9a3373

Browse files
committed
Fix -Wswitch warning in gen
+ noexcept
1 parent bbad333 commit a9a3373

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dsql/gen.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void GEN_port(DsqlCompilerScratch* dsqlScratch, dsql_msg* message)
173173
class ParamCmp
174174
{
175175
public:
176-
static int greaterThan(const Jrd::dsql_par* p1, const Jrd::dsql_par* p2)
176+
static int greaterThan(const Jrd::dsql_par* p1, const Jrd::dsql_par* p2) noexcept
177177
{
178178
return p1->par_index > p2->par_index;
179179
}
@@ -685,6 +685,9 @@ void GEN_sort(DsqlCompilerScratch* dsqlScratch, UCHAR blrVerb, ValueListNode* li
685685
case OrderNode::NULLS_LAST:
686686
dsqlScratch->appendUChar(blr_nullslast);
687687
break;
688+
case OrderNode::NULLS_DEFAULT:
689+
// Nothing to do for default placement
690+
break;
688691
}
689692

690693
dsqlScratch->appendUChar((orderNode->descending ? blr_descending : blr_ascending));

0 commit comments

Comments
 (0)