Skip to content

Commit 13e2dfe

Browse files
committed
Fix -Wswitch warning in DsqlStatements
1 parent c653078 commit 13e2dfe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dsql/DsqlStatements.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ class DsqlStatement : public Firebird::PermanentStorage
5959
};
6060

6161
// Statement flags.
62-
static const unsigned FLAG_NO_BATCH = 0x01;
63-
static const unsigned FLAG_SELECTABLE = 0x02;
62+
static inline constexpr unsigned FLAG_NO_BATCH = 0x01;
63+
static inline constexpr unsigned FLAG_SELECTABLE = 0x02;
6464

6565
static void rethrowDdlException(Firebird::status_exception& ex, bool metadataUpdate, DdlNode* node);
6666

@@ -87,9 +87,9 @@ class DsqlStatement : public Firebird::PermanentStorage
8787
case TYPE_SELECT_UPD:
8888
case TYPE_RETURNING_CURSOR:
8989
return true;
90+
default:
91+
return false;
9092
}
91-
92-
return false;
9393
}
9494

9595
Type getType() const { return type; }

0 commit comments

Comments
 (0)