You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Merge pull request #105799 from Repiteo/scons/enum-conversion-warnings
SCons: Add enum conversion warning
This commit is contained in:
@@ -39,11 +39,9 @@ public:
|
||||
COMPRESS_ZSTD,
|
||||
};
|
||||
|
||||
enum {
|
||||
TOKEN_BYTE_MASK = 0x80,
|
||||
TOKEN_BITS = 8,
|
||||
TOKEN_MASK = (1 << (TOKEN_BITS - 1)) - 1,
|
||||
};
|
||||
static constexpr uint32_t TOKEN_BYTE_MASK = 0x80;
|
||||
static constexpr uint32_t TOKEN_BITS = 8;
|
||||
static constexpr uint32_t TOKEN_MASK = (1 << (TOKEN_BITS - 1)) - 1;
|
||||
|
||||
Vector<StringName> identifiers;
|
||||
Vector<Variant> constants;
|
||||
|
||||
@@ -48,9 +48,7 @@ class BaseButton;
|
||||
class GridMapEditor : public VBoxContainer {
|
||||
GDCLASS(GridMapEditor, VBoxContainer);
|
||||
|
||||
enum {
|
||||
GRID_CURSOR_SIZE = 50
|
||||
};
|
||||
static constexpr int32_t GRID_CURSOR_SIZE = 50;
|
||||
|
||||
enum InputAction {
|
||||
INPUT_NONE,
|
||||
|
||||
Reference in New Issue
Block a user