cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
539 stars 59 forks source link

-Werror=unused-function in CameraPathPlayer.cpp:90:6 #223

Closed donSchoe closed 10 years ago

donSchoe commented 10 years ago

glow does not compile in linux because -Werror causes errors for the following -Wunused-function warning:

glow/source/glowutils/source/CameraPathPlayer.cpp:90:6: error: ‘glm::vec3 glowutils::{anonymous}::intersection(const vec3&, const vec3&, const vec3&, const vec3&)’ defined but not used [-Werror=unused-function]
 vec3 intersection(const vec3& a, const vec3& r, const vec3& p, const vec3& n)
      ^
cc1plus: all warnings being treated as errors

I was able to compile after removing the -Werror flag, but I guess you want to either fix this or exclude this warning from -Werror.

gcc (GCC) 4.9.0 20140521 (prerelease)