From f0c393fcbf6b24f4de4b5e1d6468f99a81a4e539 Mon Sep 17 00:00:00 2001 From: Garux Date: Thu, 19 Aug 2021 23:14:18 +0300 Subject: [PATCH] remove __attribute__ ((unused)) uses --- include/mapfile.h | 8 +------- libs/math/aabb.h | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/include/mapfile.h b/include/mapfile.h index d5f8b735..cdb4eae5 100644 --- a/include/mapfile.h +++ b/include/mapfile.h @@ -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::max(); +const std::size_t MAPFILE_MAX_CHANGES = std::numeric_limits::max(); class MapFile { diff --git a/libs/math/aabb.h b/libs/math/aabb.h index 21cf988c..49fdbfb3 100644 --- a/libs/math/aabb.h +++ b/libs/math/aabb.h @@ -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 ),