Closed kklouzal closed 2 years ago
Hi,
that's very strange that this one line function (https://github.com/guillaumeblanc/ozz-animation/blob/master/include/ozz/base/maths/internal/simd_math_sse-inl.h#L2029) isn't inlined. You seem to be compiling with Microsoft compiler, right? Can you try to see if you have an option that can prevent inlining?
Anyway, here's where "warning treated as error" option is set: https://github.com/guillaumeblanc/ozz-animation/blob/master/build-utils/cmake/compiler_settings.cmake#L59. You can either disable that, or disable the warning only.
Last idea, replace __forceinline by a simple inline which will not trigger the warning: https://github.com/guillaumeblanc/ozz-animation/blob/master/include/ozz/base/platform.h#L53
I'd be interested to hear it if you can find why this code isn't inlined.
Hope it helps, Guillaume
Was able to recompile ozz with -wx and everything is good to go. Haven't delved deeper into the __forceinline yet.
Trying to compile my project, not OZZ itself, with any enhanced instruction set enabled fails:
Unable to make the compiler ignore these warnings from being treated as errors..