remove __attribute__ ((unused)) uses

This commit is contained in:
Garux 2021-08-19 23:14:18 +03:00
parent 4c49b81c3a
commit f0c393fcbf
2 changed files with 2 additions and 14 deletions

View File

@ -27,13 +27,7 @@
#include "iscenegraph.h"
#include "generic/callbackfwd.h"
#ifdef __GNUC__
#define VARIABLE_IS_NOT_USED __attribute__ ((unused))
#else
#define VARIABLE_IS_NOT_USED
#endif
const std::size_t VARIABLE_IS_NOT_USED MAPFILE_MAX_CHANGES = std::numeric_limits<std::size_t>::max();
const std::size_t MAPFILE_MAX_CHANGES = std::numeric_limits<std::size_t>::max();
class MapFile
{

View File

@ -245,13 +245,7 @@ inline void aabb_planes_oriented( const AABB& aabb, const Matrix4& rotation, Pla
planes[5] = Plane3( -vector4_to_vector3( rotation.z() ), -( z - aabb.extents[2] ) );
}
#ifdef __GNUC__
#define VARIABLE_IS_NOT_USED __attribute__ ((unused))
#else
#define VARIABLE_IS_NOT_USED
#endif
const Vector3 VARIABLE_IS_NOT_USED aabb_normals[6] = {
const Vector3 aabb_normals[6] = {
Vector3( 1, 0, 0 ),
Vector3( 0, 1, 0 ),
Vector3( 0, 0, 1 ),