Skip to content

Commit ea549ab

Browse files
committed
[fix/292_unused_functions] Mark rotate_z and accurate_square_root as unused. Last part of the issues in #292.
1 parent af22ab3 commit ea549ab

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

code/math/fvi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define UNINITIALIZED_VALUE -1234567.8f
1919
#define WARN_DIST 1.0
2020

21-
static void accurate_square_root( float A, float B, float C, float discriminant, float *root1, float *root2 );
21+
static void accurate_square_root( float A, float B, float C, float discriminant, float *root1, float *root2 ) __UNUSED;
2222

2323
static float matrix_determinant_from_vectors(const vec3d *v1, const vec3d *v2, const vec3d *v3)
2424
{

code/math/vecmat.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ matrix vmd_identity_matrix = IDENTITY_MATRIX;
2929

3030
#define UNINITIALIZED_VALUE -12345678.9f
3131

32+
static void rotate_z ( matrix *m, float theta ) __UNUSED;
33+
3234
bool vm_vec_equal(const vec4 &self, const vec4 &other)
3335
{
3436
return fl_equal(self.a1d[0], other.a1d[0]) && fl_equal(self.a1d[1], other.a1d[1]) && fl_equal(self.a1d[2], other.a1d[2]) && fl_equal(self.a1d[3], other.a1d[3]);

0 commit comments

Comments
 (0)