Skip to content

Commit f4a4a16

Browse files
committed
Remove stupid warnings
1 parent 2087686 commit f4a4a16

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

codegen/src/WindowsSymbol.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,16 @@ char getWindowsAccessToken(const MemberFunctionProto& proto)
3131
{
3232
case AccessModifier::Private: return 'E';
3333
case AccessModifier::Protected: return 'M';
34+
default: return 'U';
3435
}
35-
36-
return 'U';
3736
}
3837

3938
switch (proto.access)
4039
{
4140
case AccessModifier::Private: return 'A';
4241
case AccessModifier::Protected: return 'I';
42+
default: return 'Q';
4343
}
44-
45-
return 'Q';
4644
}
4745

4846
std::string generateWindowsSymbol(const Class& clazz, const FunctionBindField* fn) {

0 commit comments

Comments
 (0)