Add missing const
across the code base
#5690
Annotations
8 errors and 4 warnings
Arch :LATEST [GCC]:
src/projectile.cpp#L1571
cast from type ‘const BASE_OBJECT*’ to type ‘STRUCTURE*’ casts away qualifiers [-Werror=cast-qual]
|
Arch :LATEST [GCC]:
src/projectile.cpp#L1575
cast from type ‘const BASE_OBJECT*’ to type ‘DROID*’ casts away qualifiers [-Werror=cast-qual]
|
Arch :LATEST [GCC]:
src/projectile.cpp#L1576
cast from type ‘const BASE_OBJECT*’ to type ‘DROID*’ casts away qualifiers [-Werror=cast-qual]
|
Arch :LATEST [GCC]
Process completed with exit code 1.
|
Arch :LATEST [Clang]:
src/projectile.cpp#L1571
cast from 'const BASE_OBJECT *' to 'STRUCTURE *' drops const qualifier [-Werror,-Wcast-qual]
|
Arch :LATEST [Clang]:
src/projectile.cpp#L1575
cast from 'const BASE_OBJECT *' to 'DROID *' drops const qualifier [-Werror,-Wcast-qual]
|
Arch :LATEST [Clang]:
src/projectile.cpp#L1576
cast from 'const BASE_OBJECT *' to 'DROID *' drops const qualifier [-Werror,-Wcast-qual]
|
Arch :LATEST [Clang]
Process completed with exit code 1.
|
Arch :LATEST [GCC]:
src/droid.cpp#L254
conversion from ‘float’ to ‘int’ may change value [-Wfloat-conversion]
|
Arch :LATEST [GCC]:
src/hci/quickchat.cpp#L275
conversion from ‘float’ to ‘int’ may change value [-Wfloat-conversion]
|
Arch :LATEST [Clang]:
src/droid.cpp#L254
implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion]
|
Arch :LATEST [Clang]:
src/hci/quickchat.cpp#L275
implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion]
|