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:
manuelk 2013-09-27 10:53:56 -07:00
parent 6eb4bdf87b
commit 3a5787ac10

View File

@ -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.