You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.../glm-0.9.9.0/test/core/core_func_matrix.cpp:300:71: error: format specifies type 'unsigned long' but the argument has type 'int' [-Werror,-Wformat]
printf("inverse<%s>(%f): %lu\n", Message, static_cast<double>(Diff), EndTime - StartTime);
~~~ ^~~~~~~~~~~~~~~~~~~
%d
This problem exists in
test/gtc/gtc_integer.cpp
test/core/core_type_vec4.cpp
test/core/core_func_matrix.cpp
test/gtx/gtx_fast_trigonometry.cpp
std::clock_t size is unspecified, so passing it directly into printf is a bad idea. Either casts are needed, or printfs should be replaced with streams (which seems better and more C++ish solution to me).
The text was updated successfully, but these errors were encountered:
FreeBSD 11.1, clang 4:
This problem exists in
std::clock_t size is unspecified, so passing it directly into printf is a bad idea. Either casts are needed, or printfs should be replaced with streams (which seems better and more C++ish solution to me).
The text was updated successfully, but these errors were encountered: