diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-02-09 14:14:49 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-10 13:58:00 +0000 |
commit | 848f165ceb54b0c7ae3e52ad7ad50c258db2956c (patch) | |
tree | bf18dba201b5d923c90ce506edeedbdd0615edb1 /external/glm | |
parent | 4af38b099c741c3676aefeb20c515913aaeed666 (diff) |
fix Wshadow warnings in glm
Change-Id: Ic366699d15338ad4bf14d783ca4dee72aa9d8e40
Reviewed-on: https://gerrit.libreoffice.org/7952
Tested-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'external/glm')
-rw-r--r-- | external/glm/UnpackedTarball_glm.mk | 1 | ||||
-rw-r--r-- | external/glm/Wshadow-patch-2.patch.1 | 283 |
2 files changed, 284 insertions, 0 deletions
diff --git a/external/glm/UnpackedTarball_glm.mk b/external/glm/UnpackedTarball_glm.mk index ff9c998c7daa..f357fdc7b569 100644 --- a/external/glm/UnpackedTarball_glm.mk +++ b/external/glm/UnpackedTarball_glm.mk @@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,glm,1)) $(eval $(call gb_UnpackedTarball_add_patches,glm, \ external/glm/Wshadow-patch-fix.patch \ + external/glm/Wshadow-patch-2.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/glm/Wshadow-patch-2.patch.1 b/external/glm/Wshadow-patch-2.patch.1 new file mode 100644 index 000000000000..499db5aef114 --- /dev/null +++ b/external/glm/Wshadow-patch-2.patch.1 @@ -0,0 +1,283 @@ +diff -ur glm.org/glm/gtc/half_float.inl glm/glm/gtc/half_float.inl +--- glm.org/glm/gtc/half_float.inl 2014-02-09 13:49:08.003856255 +0100 ++++ glm/glm/gtc/half_float.inl 2014-02-09 13:58:59.187670698 +0100 +@@ -112,20 +112,20 @@ + template <typename U> + GLM_FUNC_QUALIFIER tvec2<half>::tvec2 + ( +- U const & x ++ U const & x_ + ) : +- x(half(x)), +- y(half(x)) ++ x(half(x_)), ++ y(half(x_)) + {} + + template <typename U, typename V> + GLM_FUNC_QUALIFIER tvec2<half>::tvec2 + ( +- U const & x, +- V const & y ++ U const & x_, ++ V const & y_ + ) : +- x(half(x)), +- y(half(y)) ++ x(half(x_)), ++ y(half(y_)) + {} + + ////////////////////////////////////// +@@ -268,40 +268,40 @@ + ////////////////////////////////////// + // Swizzle operators + +- GLM_FUNC_QUALIFIER half tvec2<half>::swizzle(comp x) const ++ GLM_FUNC_QUALIFIER half tvec2<half>::swizzle(comp x_) const + { +- return (*this)[x]; ++ return (*this)[x_]; + } + +- GLM_FUNC_QUALIFIER tvec2<half> tvec2<half>::swizzle(comp x, comp y) const ++ GLM_FUNC_QUALIFIER tvec2<half> tvec2<half>::swizzle(comp x_, comp y_) const + { + return tvec2<half>( +- (*this)[x], +- (*this)[y]); ++ (*this)[x_], ++ (*this)[y_]); + } + +- GLM_FUNC_QUALIFIER tvec3<half> tvec2<half>::swizzle(comp x, comp y, comp z) const ++ GLM_FUNC_QUALIFIER tvec3<half> tvec2<half>::swizzle(comp x_, comp y_, comp z) const + { + return tvec3<half>( +- (*this)[x], +- (*this)[y], ++ (*this)[x_], ++ (*this)[y_], + (*this)[z]); + } + +- GLM_FUNC_QUALIFIER tvec4<half> tvec2<half>::swizzle(comp x, comp y, comp z, comp w) const ++ GLM_FUNC_QUALIFIER tvec4<half> tvec2<half>::swizzle(comp x_, comp y_, comp z, comp w) const + { + return tvec4<half>( +- (*this)[x], +- (*this)[y], ++ (*this)[x_], ++ (*this)[y_], + (*this)[z], + (*this)[w]); + } + +- GLM_FUNC_QUALIFIER tref2<half> tvec2<half>::swizzle(comp x, comp y) ++ GLM_FUNC_QUALIFIER tref2<half> tvec2<half>::swizzle(comp x_, comp y_) + { + return tref2<half>( +- (*this)[x], +- (*this)[y]); ++ (*this)[x_], ++ (*this)[y_]); + } + + ////////////////////////////////////// +@@ -399,23 +399,23 @@ + template <typename U> + GLM_FUNC_QUALIFIER tvec3<half>::tvec3 + ( +- U const & x ++ U const & x_ + ) : +- x(half(x)), +- y(half(x)), +- z(half(x)) ++ x(half(x_)), ++ y(half(x_)), ++ z(half(x_)) + {} + + template <typename A, typename B, typename C> + GLM_FUNC_QUALIFIER tvec3<half>::tvec3 + ( +- A const & x, +- B const & y, +- C const & z +- ) : +- x(half(x)), +- y(half(y)), +- z(half(z)) ++ A const & x_, ++ B const & y_, ++ C const & z_ ++ ) : ++ x(half(x_)), ++ y(half(y_)), ++ z(half(z_)) + {} + + ////////////////////////////////////// +@@ -584,41 +584,41 @@ + ////////////////////////////////////// + // Swizzle operators + +- GLM_FUNC_QUALIFIER half tvec3<half>::swizzle(comp x) const ++ GLM_FUNC_QUALIFIER half tvec3<half>::swizzle(comp x_) const + { +- return (*this)[x]; ++ return (*this)[x_]; + } + +- GLM_FUNC_QUALIFIER tvec2<half> tvec3<half>::swizzle(comp x, comp y) const ++ GLM_FUNC_QUALIFIER tvec2<half> tvec3<half>::swizzle(comp x_, comp y_) const + { + return tvec2<half>( +- (*this)[x], +- (*this)[y]); ++ (*this)[x_], ++ (*this)[y_]); + } + +- GLM_FUNC_QUALIFIER tvec3<half> tvec3<half>::swizzle(comp x, comp y, comp z) const ++ GLM_FUNC_QUALIFIER tvec3<half> tvec3<half>::swizzle(comp x_, comp y_, comp z_) const + { + return tvec3<half>( +- (*this)[x], +- (*this)[y], +- (*this)[z]); ++ (*this)[x_], ++ (*this)[y_], ++ (*this)[z_]); + } + +- GLM_FUNC_QUALIFIER tvec4<half> tvec3<half>::swizzle(comp x, comp y, comp z, comp w) const ++ GLM_FUNC_QUALIFIER tvec4<half> tvec3<half>::swizzle(comp x_, comp y_, comp z_, comp w) const + { + return tvec4<half>( +- (*this)[x], +- (*this)[y], +- (*this)[z], ++ (*this)[x_], ++ (*this)[y_], ++ (*this)[z_], + (*this)[w]); + } + +- GLM_FUNC_QUALIFIER tref3<half> tvec3<half>::swizzle(comp x, comp y, comp z) ++ GLM_FUNC_QUALIFIER tref3<half> tvec3<half>::swizzle(comp x_, comp y_, comp z_) + { + return tref3<half>( +- (*this)[x], +- (*this)[y], +- (*this)[z]); ++ (*this)[x_], ++ (*this)[y_], ++ (*this)[z_]); + } + + ////////////////////////////////////// +@@ -722,26 +722,26 @@ + template <typename U> + GLM_FUNC_QUALIFIER tvec4<half>::tvec4 + ( +- U const & x ++ U const & x_ + ) : +- x(half(x)), +- y(half(x)), +- z(half(x)), +- w(half(x)) ++ x(half(x_)), ++ y(half(x_)), ++ z(half(x_)), ++ w(half(x_)) + {} + + template <typename A, typename B, typename C, typename D> + GLM_FUNC_QUALIFIER tvec4<half>::tvec4 + ( +- A const & x, +- B const & y, +- C const & z, +- D const & w +- ) : +- x(half(x)), +- y(half(y)), +- z(half(z)), +- w(half(w)) ++ A const & x_, ++ B const & y_, ++ C const & z_, ++ D const & w_ ++ ) : ++ x(half(x_)), ++ y(half(y_)), ++ z(half(z_)), ++ w(half(w_)) + {} + + ////////////////////////////////////// +@@ -965,42 +965,42 @@ + ////////////////////////////////////// + // Swizzle operators + +- GLM_FUNC_QUALIFIER half tvec4<half>::swizzle(comp x) const ++ GLM_FUNC_QUALIFIER half tvec4<half>::swizzle(comp x_) const + { +- return (*this)[x]; ++ return (*this)[x_]; + } + +- GLM_FUNC_QUALIFIER tvec2<half> tvec4<half>::swizzle(comp x, comp y) const ++ GLM_FUNC_QUALIFIER tvec2<half> tvec4<half>::swizzle(comp x_, comp y_) const + { + return tvec2<half>( +- (*this)[x], +- (*this)[y]); ++ (*this)[x_], ++ (*this)[y_]); + } + +- GLM_FUNC_QUALIFIER tvec3<half> tvec4<half>::swizzle(comp x, comp y, comp z) const ++ GLM_FUNC_QUALIFIER tvec3<half> tvec4<half>::swizzle(comp x_, comp y_, comp z_) const + { + return tvec3<half>( +- (*this)[x], +- (*this)[y], +- (*this)[z]); ++ (*this)[x_], ++ (*this)[y_], ++ (*this)[z_]); + } + +- GLM_FUNC_QUALIFIER tvec4<half> tvec4<half>::swizzle(comp x, comp y, comp z, comp w) const ++ GLM_FUNC_QUALIFIER tvec4<half> tvec4<half>::swizzle(comp x_, comp y_, comp z_, comp w_) const + { + return tvec4<half>( +- (*this)[x], +- (*this)[y], +- (*this)[z], +- (*this)[w]); ++ (*this)[x_], ++ (*this)[y_], ++ (*this)[z_], ++ (*this)[w_]); + } + +- GLM_FUNC_QUALIFIER tref4<half> tvec4<half>::swizzle(comp x, comp y, comp z, comp w) ++ GLM_FUNC_QUALIFIER tref4<half> tvec4<half>::swizzle(comp x_, comp y_, comp z_, comp w_) + { + return tref4<half>( +- (*this)[x], +- (*this)[y], +- (*this)[z], +- (*this)[w]); ++ (*this)[x_], ++ (*this)[y_], ++ (*this)[z_], ++ (*this)[w_]); + } + + #endif//(GLM_COMPONENT == GLM_COMPONENT_CXX98) |