mirror of
https://github.com/g-truc/glm.git
synced 2024-11-15 14:24:36 +00:00
Fix warnings when compiling with -Wshadow & clang
Fix a handful of places where parameters shadow fields.
This commit is contained in:
parent
bc9aaa4033
commit
0d826a27ad
@ -136,12 +136,12 @@ namespace detail
|
||||
i(0)
|
||||
{}
|
||||
|
||||
GLM_FUNC_QUALIFIER uif32(float f) :
|
||||
f(f)
|
||||
GLM_FUNC_QUALIFIER uif32(float f_) :
|
||||
f(f_)
|
||||
{}
|
||||
|
||||
GLM_FUNC_QUALIFIER uif32(unsigned int i) :
|
||||
i(i)
|
||||
GLM_FUNC_QUALIFIER uif32(unsigned int i_) :
|
||||
i(i_)
|
||||
{}
|
||||
|
||||
float f;
|
||||
@ -154,12 +154,12 @@ namespace detail
|
||||
i(0)
|
||||
{}
|
||||
|
||||
GLM_FUNC_QUALIFIER uif64(double f) :
|
||||
f(f)
|
||||
GLM_FUNC_QUALIFIER uif64(double f_) :
|
||||
f(f_)
|
||||
{}
|
||||
|
||||
GLM_FUNC_QUALIFIER uif64(uint64 i) :
|
||||
i(i)
|
||||
GLM_FUNC_QUALIFIER uif64(uint64 i_) :
|
||||
i(i_)
|
||||
{}
|
||||
|
||||
double f;
|
||||
|
@ -883,9 +883,9 @@ namespace detail
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER tref1<T>::tref1
|
||||
(
|
||||
T & x
|
||||
T & x_
|
||||
) :
|
||||
x(x)
|
||||
x(x_)
|
||||
{}
|
||||
|
||||
template <typename T>
|
||||
|
@ -972,11 +972,11 @@ namespace detail
|
||||
template <typename T>
|
||||
tref2<T>::tref2
|
||||
(
|
||||
T & x,
|
||||
T & y
|
||||
T & x_,
|
||||
T & y_
|
||||
) :
|
||||
x(x),
|
||||
y(y)
|
||||
x(x_),
|
||||
y(y_)
|
||||
{}
|
||||
|
||||
template <typename T>
|
||||
|
@ -1092,10 +1092,10 @@ namespace detail
|
||||
// tref definition
|
||||
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER tref3<T>::tref3(T & x, T & y, T & z) :
|
||||
x(x),
|
||||
y(y),
|
||||
z(z)
|
||||
GLM_FUNC_QUALIFIER tref3<T>::tref3(T & x_, T & y_, T & z_) :
|
||||
x(x_),
|
||||
y(y_),
|
||||
z(z_)
|
||||
{}
|
||||
|
||||
template <typename T>
|
||||
|
@ -1309,15 +1309,15 @@ namespace detail
|
||||
template <typename T>
|
||||
tref4<T>::tref4
|
||||
(
|
||||
T & x,
|
||||
T & y,
|
||||
T & z,
|
||||
T & w
|
||||
T & x_,
|
||||
T & y_,
|
||||
T & z_,
|
||||
T & w_
|
||||
) :
|
||||
x(x),
|
||||
y(y),
|
||||
z(z),
|
||||
w(w)
|
||||
x(x_),
|
||||
y(y_),
|
||||
z(z_),
|
||||
w(w_)
|
||||
{}
|
||||
|
||||
template <typename T>
|
||||
|
@ -60,15 +60,15 @@ namespace detail
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER tquat<T>::tquat
|
||||
(
|
||||
value_type const & w,
|
||||
value_type const & x,
|
||||
value_type const & y,
|
||||
value_type const & z
|
||||
value_type const & w_,
|
||||
value_type const & x_,
|
||||
value_type const & y_,
|
||||
value_type const & z_
|
||||
) :
|
||||
x(x),
|
||||
y(y),
|
||||
z(z),
|
||||
w(w)
|
||||
x(x_),
|
||||
y(y_),
|
||||
z(z_),
|
||||
w(w_)
|
||||
{}
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user