Fix warnings on the pi.

This commit is contained in:
Relintai 2022-08-01 23:32:12 +02:00
parent 9a85a52e0d
commit 6cceda5101

View File

@ -45,26 +45,19 @@ class Node : public Object {
OBJ_CATEGORY("Nodes"); OBJ_CATEGORY("Nodes");
public: public:
// N.B. Any enum stored as a bitfield should enum PauseMode {
// be specified as UNSIGNED to work around PAUSE_MODE_INHERIT = 0,
// some compilers trying to store it as signed, PAUSE_MODE_STOP = 1,
// and requiring 1 more bit than necessary. PAUSE_MODE_PROCESS = 2
enum PauseMode : unsigned int {
PAUSE_MODE_INHERIT,
PAUSE_MODE_STOP,
PAUSE_MODE_PROCESS
}; };
enum PhysicsInterpolationMode : unsigned int { enum PhysicsInterpolationMode {
PHYSICS_INTERPOLATION_MODE_INHERIT = 0,
PHYSICS_INTERPOLATION_MODE_INHERIT, PHYSICS_INTERPOLATION_MODE_OFF = 1,
PHYSICS_INTERPOLATION_MODE_OFF, PHYSICS_INTERPOLATION_MODE_ON = 2
PHYSICS_INTERPOLATION_MODE_ON
}; };
enum DuplicateFlags { enum DuplicateFlags {
DUPLICATE_SIGNALS = 1, DUPLICATE_SIGNALS = 1,
DUPLICATE_GROUPS = 2, DUPLICATE_GROUPS = 2,
DUPLICATE_SCRIPTS = 4, DUPLICATE_SCRIPTS = 4,