Add missing const
across the code base
#7421
CI_ubuntu.yml
on: pull_request
Matrix: ubuntu-build
Package Source (Ubuntu 22.04) [GCC]
17m 11s
Matrix: upload-debug-symbols
Annotations
20 errors and 26 warnings
Ubuntu 22.04 [Clang]:
src/projectile.cpp#L1571
cast from 'const BASE_OBJECT *' to 'STRUCTURE *' drops const qualifier [-Werror,-Wcast-qual]
|
Ubuntu 22.04 [Clang]:
src/projectile.cpp#L1575
cast from 'const BASE_OBJECT *' to 'DROID *' drops const qualifier [-Werror,-Wcast-qual]
|
Ubuntu 22.04 [Clang]:
src/projectile.cpp#L1576
cast from 'const BASE_OBJECT *' to 'DROID *' drops const qualifier [-Werror,-Wcast-qual]
|
Ubuntu 22.04 [Clang]
Process completed with exit code 1.
|
Ubuntu 22.04 [GCC]:
src/projectile.cpp#L1571
cast from type 'const BASE_OBJECT*' to type 'STRUCTURE*' casts away qualifiers [-Werror=cast-qual]
|
Ubuntu 22.04 [GCC]:
src/projectile.cpp#L1575
cast from type 'const BASE_OBJECT*' to type 'DROID*' casts away qualifiers [-Werror=cast-qual]
|
Ubuntu 22.04 [GCC]:
src/projectile.cpp#L1576
cast from type 'const BASE_OBJECT*' to type 'DROID*' casts away qualifiers [-Werror=cast-qual]
|
Ubuntu 22.04 [GCC]
Process completed with exit code 1.
|
Ubuntu 20.04 [Clang]:
src/projectile.cpp#L1571
cast from 'const BASE_OBJECT *' to 'STRUCTURE *' drops const qualifier [-Werror,-Wcast-qual]
|
Ubuntu 20.04 [Clang]:
src/projectile.cpp#L1575
cast from 'const BASE_OBJECT *' to 'DROID *' drops const qualifier [-Werror,-Wcast-qual]
|
Ubuntu 20.04 [Clang]:
src/projectile.cpp#L1576
cast from 'const BASE_OBJECT *' to 'DROID *' drops const qualifier [-Werror,-Wcast-qual]
|
Ubuntu 20.04 [Clang]
Process completed with exit code 1.
|
Ubuntu 20.04 [GCC]:
src/projectile.cpp#L1571
cast from type 'const BASE_OBJECT*' to type 'STRUCTURE*' casts away qualifiers [-Werror=cast-qual]
|
Ubuntu 20.04 [GCC]:
src/projectile.cpp#L1575
cast from type 'const BASE_OBJECT*' to type 'DROID*' casts away qualifiers [-Werror=cast-qual]
|
Ubuntu 20.04 [GCC]:
src/projectile.cpp#L1576
cast from type 'const BASE_OBJECT*' to type 'DROID*' casts away qualifiers [-Werror=cast-qual]
|
Ubuntu 20.04 [GCC]
Process completed with exit code 1.
|
Package Source (Ubuntu 22.04) [GCC]
cast from type 'const BASE_OBJECT*' to type 'STRUCTURE*' casts away qualifiers [-Werror=cast-qual]
|
Package Source (Ubuntu 22.04) [GCC]
cast from type 'const BASE_OBJECT*' to type 'DROID*' casts away qualifiers [-Werror=cast-qual]
|
Package Source (Ubuntu 22.04) [GCC]
cast from type 'const BASE_OBJECT*' to type 'DROID*' casts away qualifiers [-Werror=cast-qual]
|
Package Source (Ubuntu 22.04) [GCC]
Process completed with exit code 1.
|
Ubuntu 22.04 [Clang]:
src/droid.cpp#L254
implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion]
|
Ubuntu 22.04 [Clang]:
src/hci/quickchat.cpp#L275
implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion]
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 22.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [Clang]:
src/droid.cpp#L254
implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion]
|
Ubuntu 20.04 [Clang]:
src/hci/quickchat.cpp#L275
implicit conversion turns floating-point number into integer: 'float' to 'int' [-Wfloat-conversion]
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Ubuntu 20.04 [GCC]
ISO C++11 requires at least one argument for the "..." in a variadic macro
|
Package Source (Ubuntu 22.04) [GCC]
conversion from 'float' to 'int' may change value [-Wfloat-conversion]
|
Package Source (Ubuntu 22.04) [GCC]
conversion from 'float' to 'int' may change value [-Wfloat-conversion]
|