Skip to content

Commit f82dacf

Browse files
committed
Fix -Wswitch warnings in DdlNodes
1 parent 9226cc5 commit f82dacf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/dsql/DdlNodes.epp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,12 @@ static const char* getRelationScopeName(const rel_t type)
609609
return REL_SCOPE_VIEW;
610610
case rel_virtual:
611611
return REL_SCOPE_VIRTUAL;
612+
case rel_persistent:
613+
return REL_SCOPE_PERSISTENT;
614+
default:
615+
fb_assert(false);
616+
return REL_SCOPE_PERSISTENT; // keep compiler happy
612617
}
613-
614-
return REL_SCOPE_PERSISTENT;
615618
}
616619

617620
// Check, can relation of given type be used in FK?
@@ -7127,6 +7130,9 @@ void RelationNode::defineConstraint(thread_db* tdbb, DsqlCompilerScratch* dsqlSc
71277130

71287131
break;
71297132
}
7133+
default:
7134+
// no index needed
7135+
break;
71307136
}
71317137
}
71327138
END_STORE
@@ -11396,6 +11402,9 @@ void MappingNode::runInSecurityDb(SecDbContext* secDbContext)
1139611402
sql = "delete from RDBAUTH_MAPPING where RDB$MAP_NAME = ?";
1139711403
msg = &msgCheck;
1139811404
break;
11405+
default:
11406+
// handled by assert below
11407+
break;
1139911408
}
1140011409

1140111410
// Actual modification

0 commit comments

Comments
 (0)