mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-11 17:10:08 +00:00
Add a note in the documentation about disabling offsetof warning.
Because client code inlines Hbr, this warning is spurriously triggered by several compilers and needs to be disabled within the client code build system. fixes #227
This commit is contained in:
parent
6eb4bdf87b
commit
3a5787ac10
@ -57,3 +57,10 @@ Here are example commands for building an OpenSubdiv application on several arch
|
||||
link /nologo /out:myapp.exe /LIBPATH:"%OPENSUBDIV%\lib" libosdCPU.lib libosdGPU.lib myapp.obj
|
||||
|
||||
|
||||
.. container:: impnotip
|
||||
|
||||
**Note:**
|
||||
|
||||
HBR uses the offsetof macro on a templated struct, which appears to spurriously set off a
|
||||
warning in both gccc and Clang. It is recommended to turn the warning off with the
|
||||
*-Wno-invalid-offsetof* flag.
|
||||
|
Loading…
Reference in New Issue
Block a user