-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.1: build fails with GLM_TEST_ENABLE=ON
#1289
Comments
And build fails with "make -k >/dev/null" output:In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.hpp:728,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/ext.hpp:183,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_force_ctor_init.cpp:4:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackUnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:391:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} from an array of ‘glm::uint16’ {aka ‘short unsigned int’} [-Werror=class-memaccess]
391 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:117,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_force_ctor_init.cpp:3:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackSnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:423:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} from an array of ‘glm::uint16’ {aka ‘short unsigned int’} [-Werror=class-memaccess]
423 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackUnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:451:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Werror=class-memaccess]
451 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:119:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackSnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:483:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Werror=class-memaccess]
483 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackHalf4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:519:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Werror=class-memaccess]
519 | memcpy(&Unpack, &v, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec2 glm::unpackInt2x8(int16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:821:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} from an array of ‘glm::int16’ {aka ‘short int’} [-Werror=class-memaccess]
821 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec2 glm::unpackUint2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:835:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} from an array of ‘glm::uint16’ {aka ‘short unsigned int’} [-Werror=class-memaccess]
835 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec4 glm::unpackInt4x8(int32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:849:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} from an array of ‘glm::int32’ {aka ‘int’} [-Werror=class-memaccess]
849 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec4 glm::unpackUint4x8(uint32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:863:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} from an array of ‘glm::uint32’ {aka ‘unsigned int’} [-Werror=class-memaccess]
863 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec2 glm::unpackInt2x16(int)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:877:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} from an array of ‘int’ [-Werror=class-memaccess]
877 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec4 glm::unpackInt4x16(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:891:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} from an array of ‘glm::int64’ {aka ‘long int’} [-Werror=class-memaccess]
891 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec2 glm::unpackUint2x16(uint)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:905:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} from an array of ‘glm::uint’ {aka ‘unsigned int’} [-Werror=class-memaccess]
905 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec4 glm::unpackUint4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:919:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Werror=class-memaccess]
919 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i32vec2 glm::unpackInt2x32(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:933:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} from an array of ‘glm::int64’ {aka ‘long int’} [-Werror=class-memaccess]
933 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u32vec2 glm::unpackUint2x32(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:947:23: error: ‘void* memcpy(void*, const void*, size_t)’ copying an object of non-trivial type ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} from an array of ‘glm::uint64’ {aka ‘long unsigned int’} [-Werror=class-memaccess]
947 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_force_ctor_init.dir/build.make:79: test/core/CMakeFiles/test-core_force_ctor_init.dir/core_force_ctor_init.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_force_ctor_init.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:1479: test/core/CMakeFiles/test-core_force_ctor_init.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_type_vec1.cpp:14:18: error: ‘g1’ defined but not used [-Werror=unused-variable]
14 | static glm::vec1 g1;
| ^~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_type_vec1.dir/build.make:79: test/core/CMakeFiles/test-core_type_vec1.dir/core_type_vec1.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_type_vec1.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2103: test/core/CMakeFiles/test-core_type_vec1.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_type_vec2.cpp:19:19: error: ‘g1’ defined but not used [-Werror=unused-variable]
19 | static glm::ivec2 g1;
| ^~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_type_vec2.dir/build.make:79: test/core/CMakeFiles/test-core_type_vec2.dir/core_type_vec2.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_type_vec2.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2129: test/core/CMakeFiles/test-core_type_vec2.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_type_vec3.cpp:18:18: error: ‘g1’ defined but not used [-Werror=unused-variable]
18 | static glm::vec3 g1;
| ^~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_type_vec3.dir/build.make:79: test/core/CMakeFiles/test-core_type_vec3.dir/core_type_vec3.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_type_vec3.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2155: test/core/CMakeFiles/test-core_type_vec3.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_type_vec4.cpp:20:18: error: ‘g1’ defined but not used [-Werror=unused-variable]
20 | static glm::vec4 g1;
| ^~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_type_vec4.dir/build.make:79: test/core/CMakeFiles/test-core_type_vec4.dir/core_type_vec4.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_type_vec4.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2181: test/core/CMakeFiles/test-core_type_vec4.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp: In function ‘int main()’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:211:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
211 | if (pop0(test[i]) != test[i+1]) error(test[i], pop0(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:219:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
219 | if (pop1(test[i]) != test[i+1]) error(test[i], pop1(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:227:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
227 | if (pop2(test[i]) != test[i+1]) error(test[i], pop2(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:235:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
235 | if (pop3(test[i]) != test[i+1]) error(test[i], pop3(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:243:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
243 | if (pop4(test[i]) != test[i+1]) error(test[i], pop4(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:251:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
251 | if (pop5(test[i]) != test[i+1]) error(test[i], pop5(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:259:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
259 | if (pop5a(test[i]) != test[i+1]) error(test[i], pop5a(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:267:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
267 | if (pop6(test[i]) != test[i+1]) error(test[i], pop6(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:276:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
276 | if (pop7(test[i]) != test[i+1]) error(test[i], pop7(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:285:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
285 | if (pop8(test[i]) != test[i+1]) error(test[i], pop8(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_bit_count.cpp:294:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
294 | if (pop9(test[i]) != test[i+1]) error(test[i], pop9(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_func_integer_bit_count.dir/build.make:79: test/core/CMakeFiles/test-core_func_integer_bit_count.dir/core_func_integer_bit_count.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_func_integer_bit_count.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2311: test/core/CMakeFiles/test-core_func_integer_bit_count.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp: In function ‘int main()’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:315:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
315 | if (ntz1(test[i]) != test[i+1]) error(test[i], ntz1(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:323:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
323 | if (ntz2(test[i]) != test[i+1]) error(test[i], ntz2(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:331:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
331 | if (ntz3(test[i]) != test[i+1]) error(test[i], ntz3(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:339:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
339 | if (ntz4(test[i]) != test[i+1]) error(test[i], ntz4(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:347:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
347 | if (ntz4a(test[i]) != test[i+1]) error(test[i], ntz4a(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:369:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
369 | if (ntz6(test[i]) != test[i+1]) error(test[i], ntz6(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:377:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
377 | if (ntz6a(test[i]) != test[i+1]) error(test[i], ntz6a(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:385:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
385 | if (ntz7(test[i]) != test[i+1]) error(test[i], ntz7(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:401:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
401 | if (ntz8(test[i]) != test[i+1]) error(test[i], ntz8(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:409:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
409 | if (ntz8a(test[i]) != test[i+1]) error(test[i], ntz8a(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:417:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
417 | if (ntz9(test[i]) != test[i+1]) error(test[i], ntz9(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:425:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
425 | if (ntz10(test[i]) != test[i+1]) error(test[i], ntz10(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_lsb.cpp:433:44: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
433 | if (ntz11(test[i]) != test[i + 1]) error(test[i], ntz11(test[i]));
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_func_integer_find_lsb.dir/build.make:79: test/core/CMakeFiles/test-core_func_integer_find_lsb.dir/core_func_integer_find_lsb.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_func_integer_find_lsb.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2337: test/core/CMakeFiles/test-core_func_integer_find_lsb.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp: In function ‘int main()’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:341:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
341 | if (nlz1(test[i]) != test[i+1]) error(test[i], nlz1(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:349:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
349 | if (nlz1a(test[i]) != test[i+1]) error(test[i], nlz1a(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:357:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
357 | if (nlz2(test[i]) != test[i+1]) error(test[i], nlz2(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:365:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
365 | if (nlz2a(test[i]) != test[i+1]) error(test[i], nlz2a(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:373:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
373 | if (nlz3(test[i]) != test[i+1]) error(test[i], nlz3(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:381:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
381 | if (nlz4(test[i]) != test[i+1]) error(test[i], nlz4(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:389:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
389 | if (nlz5(test[i]) != test[i+1]) error(test[i], nlz5(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:397:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
397 | if (nlz6(test[i]) != test[i+1]) error(test[i], nlz6(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:405:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
405 | if (nlz7(test[i]) != test[i+1]) error(test[i], nlz7(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:413:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
413 | if (nlz8(test[i]) != test[i+1]) error(test[i], nlz8(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:421:35: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
421 | if (nlz9(test[i]) != test[i+1]) error(test[i], nlz9(test[i]));}
| ~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:429:36: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
429 | if (nlz10(test[i]) != test[i+1]) error(test[i], nlz10(test[i]));}
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:437:37: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
437 | if (nlz10a(test[i]) != test[i+1]) error(test[i], nlz10a(test[i]));}
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_func_integer_find_msb.cpp:445:37: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare]
445 | if (nlz10b(test[i]) != test[i+1]) error(test[i], nlz10b(test[i]));}
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_func_integer_find_msb.dir/build.make:79: test/core/CMakeFiles/test-core_func_integer_find_msb.dir/core_func_integer_find_msb.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_func_integer_find_msb.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2363: test/core/CMakeFiles/test-core_func_integer_find_msb.dir/all] Error 2
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.hpp:728,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/ext.hpp:183,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_force_cxx_unknown.cpp:6:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackUnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:391:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
391 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:117,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_force_cxx_unknown.cpp:5:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackSnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:423:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
423 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackUnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:451:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
451 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:119:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackSnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:483:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
483 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackHalf4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:519:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
519 | memcpy(&Unpack, &v, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec2 glm::unpackInt2x8(int16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:821:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
821 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec2 glm::unpackUint2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:835:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
835 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec4 glm::unpackInt4x8(int32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:849:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
849 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec4 glm::unpackUint4x8(uint32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:863:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
863 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec2 glm::unpackInt2x16(int)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:877:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
877 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec4 glm::unpackInt4x16(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:891:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
891 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec2 glm::unpackUint2x16(uint)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:905:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
905 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec4 glm::unpackUint4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:919:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
919 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i32vec2 glm::unpackInt2x32(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:933:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
933 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u32vec2 glm::unpackUint2x32(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:947:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
947 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_setup_force_cxx_unknown.dir/build.make:79: test/core/CMakeFiles/test-core_setup_force_cxx_unknown.dir/core_setup_force_cxx_unknown.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_setup_force_cxx_unknown.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2545: test/core/CMakeFiles/test-core_setup_force_cxx_unknown.dir/all] Error 2
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.hpp:728,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/ext.hpp:183,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_force_cxx98.cpp:26:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackUnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:391:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
391 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:117,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_force_cxx98.cpp:25:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackSnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:423:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
423 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackUnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:451:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
451 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:119:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackSnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:483:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
483 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackHalf4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:519:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
519 | memcpy(&Unpack, &v, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec2 glm::unpackInt2x8(int16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:821:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
821 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec2 glm::unpackUint2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:835:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
835 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec4 glm::unpackInt4x8(int32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:849:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
849 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec4 glm::unpackUint4x8(uint32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:863:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
863 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec2 glm::unpackInt2x16(int)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:877:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
877 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec4 glm::unpackInt4x16(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:891:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
891 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec2 glm::unpackUint2x16(uint)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:905:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
905 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec4 glm::unpackUint4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:919:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
919 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i32vec2 glm::unpackInt2x32(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:933:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
933 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u32vec2 glm::unpackUint2x32(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:947:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
947 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_setup_force_cxx98.dir/build.make:79: test/core/CMakeFiles/test-core_setup_force_cxx98.dir/core_setup_force_cxx98.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_setup_force_cxx98.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2571: test/core/CMakeFiles/test-core_setup_force_cxx98.dir/all] Error 2
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.hpp:728,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/ext.hpp:183,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_force_cxx03.cpp:26:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackUnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:391:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
391 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:117,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_force_cxx03.cpp:25:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackSnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:423:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
423 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackUnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:451:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
451 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:119:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackSnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:483:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
483 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackHalf4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:519:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
519 | memcpy(&Unpack, &v, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec2 glm::unpackInt2x8(int16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:821:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
821 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec2 glm::unpackUint2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:835:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
835 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec4 glm::unpackInt4x8(int32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:849:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
849 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec4 glm::unpackUint4x8(uint32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:863:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
863 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec2 glm::unpackInt2x16(int)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:877:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
877 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec4 glm::unpackInt4x16(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:891:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
891 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec2 glm::unpackUint2x16(uint)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:905:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
905 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec4 glm::unpackUint4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:919:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
919 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i32vec2 glm::unpackInt2x32(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:933:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
933 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u32vec2 glm::unpackUint2x32(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:947:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
947 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_setup_force_cxx03.dir/build.make:79: test/core/CMakeFiles/test-core_setup_force_cxx03.dir/core_setup_force_cxx03.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_setup_force_cxx03.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2597: test/core/CMakeFiles/test-core_setup_force_cxx03.dir/all] Error 2
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.hpp:728,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/ext.hpp:183,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_platform_unknown.cpp:30:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackUnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:391:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
391 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec2.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:117,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/core/core_setup_platform_unknown.cpp:29:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec2 glm::unpackSnorm2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:423:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
423 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackUnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:451:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
451 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/vector_bool4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/vec4.hpp:5,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/glm.hpp:119:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackSnorm4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:483:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
483 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::vec4 glm::unpackHalf4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:519:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
519 | memcpy(&Unpack, &v, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec2 glm::unpackInt2x8(int16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:821:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
821 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i8vec2’ {aka ‘struct glm::vec<2, signed char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec2 glm::unpackUint2x8(uint16)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:835:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
835 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u8vec2’ {aka ‘struct glm::vec<2, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i8vec4 glm::unpackInt4x8(int32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:849:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
849 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i8vec4’ {aka ‘struct glm::vec<4, signed char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u8vec4 glm::unpackUint4x8(uint32)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:863:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
863 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u8vec4’ {aka ‘struct glm::vec<4, unsigned char, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec2 glm::unpackInt2x16(int)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:877:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
877 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i16vec2’ {aka ‘struct glm::vec<2, short int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i16vec4 glm::unpackInt4x16(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:891:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
891 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::i16vec4’ {aka ‘struct glm::vec<4, short int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec2 glm::unpackUint2x16(uint)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:905:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
905 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u16vec2’ {aka ‘struct glm::vec<2, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u16vec4 glm::unpackUint4x16(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:919:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
919 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec4.hpp:17:16: note: ‘glm::u16vec4’ {aka ‘struct glm::vec<4, short unsigned int, glm::packed_highp>’} declared here
17 | struct vec<4, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::i32vec2 glm::unpackInt2x32(int64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:933:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
933 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::i32vec2’ {aka ‘struct glm::vec<2, int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl: In function ‘glm::u32vec2 glm::unpackUint2x32(uint64)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./gtc/packing.inl:947:23: error: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
947 | memcpy(&Unpack, &p, sizeof(Unpack));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/./ext/../detail/type_vec2.hpp:17:16: note: ‘glm::u32vec2’ {aka ‘struct glm::vec<2, unsigned int, glm::packed_highp>’} declared here
17 | struct vec<2, T, Q>
| ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/core/CMakeFiles/test-core_setup_platform_unknown.dir/build.make:79: test/core/CMakeFiles/test-core_setup_platform_unknown.dir/core_setup_platform_unknown.cpp.o] Error 1
make[2]: Target 'test/core/CMakeFiles/test-core_setup_platform_unknown.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:2675: test/core/CMakeFiles/test-core_setup_platform_unknown.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/ext/ext_vec1.cpp:12:18: error: ‘g1’ defined but not used [-Werror=unused-variable]
12 | static glm::vec1 g1;
| ^~
cc1plus: all warnings being treated as errors
make[2]: *** [test/ext/CMakeFiles/test-ext_vec1.dir/build.make:79: test/ext/CMakeFiles/test-ext_vec1.dir/ext_vec1.cpp.o] Error 1
make[2]: Target 'test/ext/CMakeFiles/test-ext_vec1.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:3689: test/ext/CMakeFiles/test-ext_vec1.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtc/gtc_bitfield.cpp: In function ‘int mask::mask_mix(int)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtc/gtc_bitfield.cpp:35:29: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
35 | return Bits >= sizeof(int) * 8 ? 0xffffffff : (static_cast<int>(1) << Bits) - static_cast<int>(1);
| ~~~~~^~~~~~~~~~~~~~~~~~
In file included from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/gtc/bitfield.hpp:266,
from /home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtc/gtc_bitfield.cpp:1:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/gtc/bitfield.inl: In instantiation of ‘genIUType glm::mask(genIUType) [with genIUType = int]’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtc/gtc_bitfield.cpp:91:24: required from here
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtc/gtc_bitfield.cpp:35:29: error: 91 | Mask[i] = glm::mask(i % 32);
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtc/gtc_bitfield.cpp:35:29: error: | ~~~~~~~~~^~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/glm/gtc/bitfield.inl:234:29: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare]
234 | return Bits >= sizeof(genIUType) * 8 ? ~static_cast<genIUType>(0) : (static_cast<genIUType>(1) << Bits) - static_cast<genIUType>(1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/gtc/CMakeFiles/test-gtc_bitfield.dir/build.make:79: test/gtc/CMakeFiles/test-gtc_bitfield.dir/gtc_bitfield.cpp.o] Error 1
make[2]: Target 'test/gtc/CMakeFiles/test-gtc_bitfield.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:4131: test/gtc/CMakeFiles/test-gtc_bitfield.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp: In instantiation of ‘void {anonymous}::_test_easing() [with T = float]’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp:58:21: required from here
58 | _test_easing<float>();
| ~~~~~~~~~~~~~~~~~~~^~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp:12:19: error: variable ‘r’ set but not used [-Werror=unused-but-set-variable]
12 | T r;
| ^
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp: In instantiation of ‘void {anonymous}::_test_easing() [with T = double]’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp:59:22: required from here
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp:12:19: error: 59 | _test_easing<double>();
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp:12:19: error: | ~~~~~~~~~~~~~~~~~~~~^~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_easing.cpp:12:19: error: variable ‘r’ set but not used [-Werror=unused-but-set-variable]
12 | T r;
| ^
cc1plus: all warnings being treated as errors
make[2]: *** [test/gtx/CMakeFiles/test-gtx_easing.dir/build.make:79: test/gtx/CMakeFiles/test-gtx_easing.dir/gtx_easing.cpp.o] Error 1
make[2]: Target 'test/gtx/CMakeFiles/test-gtx_easing.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:4885: test/gtx/CMakeFiles/test-gtx_easing.dir/all] Error 2
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp: In function ‘int fastCos::perf(bool)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:25:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
25 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:29:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
29 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp: In function ‘int fastSin::perf(bool)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:61:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
61 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:65:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
65 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp: In function ‘int fastTan::perf(bool)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:89:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
89 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:93:50: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
93 | for (float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp: In function ‘int fastAcos::perf(bool)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:117:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
117 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:121:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
121 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp: In function ‘int fastAsin::perf(bool)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:145:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
145 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:148:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
148 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp: In function ‘int fastAtan::perf(bool)’:
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:170:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
170 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/tkloczko/rpmbuild/BUILD/glm-1.0.1/test/gtx/gtx_fast_trigonometry.cpp:173:49: error: operation on ‘i’ may be undefined [-Werror=sequence-point]
173 | for(float i = begin; i < end; i = NextFloat ? glm::nextFloat(i) : i += 0.1f)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/gtx/CMakeFiles/test-gtx_fast_trigonometry.dir/build.make:79: test/gtx/CMakeFiles/test-gtx_fast_trigonometry.dir/gtx_fast_trigonometry.cpp.o] Error 1
make[2]: Target 'test/gtx/CMakeFiles/test-gtx_fast_trigonometry.dir/build' not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:5067: test/gtx/CMakeFiles/test-gtx_fast_trigonometry.dir/all] Error 2
make[1]: Target 'all' not remade because of errors.
make: *** [Makefile:169: all] Error 2
make: Target 'default_target' not remade because of errors. |
All those warnings are turned ito eerors because [tkloczko@pers-jacek glm-1.0.1]$ grep -r -- -Werror
test/CMakeLists.txt: add_compile_options(-Werror -Weverything)
test/CMakeLists.txt: add_compile_options(-Werror) Lines 19 to 41 in a2844ee
|
After add JFDI patch --- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -3,61 +3,6 @@
option(GLM_TEST_ENABLE "Build unit tests" ON)
option(GLM_PERF_TEST_ENABLE "Build perf tests" OFF)
-# Compiler and default options
-
-if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- if(NOT GLM_QUIET)
- message("GLM: Clang - ${CMAKE_CXX_COMPILER_ID} compiler")
- endif()
-
- if(NOT GLM_DISABLE_AUTO_DETECTION)
- add_compile_options(-Werror -Weverything)
- endif()
-
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
- if(NOT GLM_QUIET)
- message("GLM: GCC - ${CMAKE_CXX_COMPILER_ID} compiler")
- endif()
-
- if(NOT GLM_DISABLE_AUTO_DETECTION)
- add_compile_options(-Werror)
-# add_compile_options(-Wpedantic)
-# add_compile_options(-Wall)
-# add_compile_options(-Wextra)
- endif()
- add_compile_options(-O2)
- #add_compile_options(-Wno-long-long)
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
- if(NOT GLM_QUIET)
- message("GLM: Intel - ${CMAKE_CXX_COMPILER_ID} compiler")
- endif()
-
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
- if(NOT GLM_QUIET)
- message("GLM: Visual C++ - ${CMAKE_CXX_COMPILER_ID} compiler")
- endif()
-
- if(NOT GLM_DISABLE_AUTO_DETECTION)
- add_compile_options(/Wall /WX)
- add_compile_options(/wd4464) # warning C4464: relative include path contains '..'
- add_compile_options(/wd4514) # warning C4514: unreferenced inline function has been removed
- add_compile_options(/wd4365) # warning C4365: signed/unsigned mismatch
- add_compile_options(/wd5045) # warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
- add_compile_options(/wd5029) # warning C5029: nonstandard extension used: alignment attributes in C++ apply to variables, data members and tag types only
- add_compile_options(/wd4820) # warning C4820: 'test_decl::S1': '3' bytes padding added after data member 'test_decl::S1::A'
- add_compile_options(/wd4710) # warning C4710: 'std::string glm::detail::format(const char *,...)': function not inlined
- add_compile_options(/wd4626) # warning C4626: 'glm::io::format_punct<CTy>': assignment operator was implicitly defined as deleted
- add_compile_options(/wd4711) # warning C4711: function 'int __cdecl test_vec1(void)' selected for automatic inline expansion
- add_compile_options(/wd4571) # warning C4571: Informational: catch(...) semantics changed since Visual C++ 7.1; structured exceptions (SEH) are no longer caught
- add_compile_options(/wd4625) # warning C4625: 'std::codecvt_base': copy constructor was implicitly defined as deleted
- add_compile_options(/wd5026) # warning C5026: 'std::_Generic_error_category': move constructor was implicitly defined as deleted
- add_compile_options(/wd5027) # warning C5027: 'std::_Generic_error_category': move assignment operator was implicitly defined as deleted
- add_compile_options(/wd4774) # warning C4774: 'sprintf_s' : format string expected in argument 3 is not a string literal
- endif()
-# add_compile_options(/wd4309 /wd4324 /wd4389 /wd4127 /wd4267 /wd4146 /wd4201 /wd4464 /wd4514 /wd4701 /wd4820 /wd4365)
- add_definitions(-D_CRT_SECURE_NO_WARNINGS)
-endif()
-
function(glmCreateTestGTC NAME)
set(SAMPLE_NAME test-${NAME})
add_executable(${SAMPLE_NAME} ${NAME}.cpp) I was able to build glm. Looks like test suite is OK. [tkloczko@pers-jacek SPECS]$ rpmbuild -ba glm.spec --quiet 2>&1 | grep -- \\[-W | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
75 -Wclass-memaccess
40 -Wsign-compare
12 -Wsequence-point
5 -Wunused-variable
2 -Wunused-but-set-variable |
isnt just a matter of removing -Werror? |
cmake settigs
"cmake -L" output:
The text was updated successfully, but these errors were encountered: