PhysX
PhysX copied to clipboard
[Linux] GCC error: passing argument 1 to restrict-qualified parameter aliases with argument 5
The error is happening from here:
https://github.com/NVIDIAGameWorks/PhysX/blob/4.1/physx/source/geomutils/src/mesh/GuBV4Build.cpp#L298
Is there a way that I can disable this error without touching the CMake files (e.g using CMake arguments or something similar)?
The best thing to do here would probably be to change the code and remove the restrict qualifiers.
After spending a lot of time going through the CMake configuration, I found that the CMAKE_CXX_FLAGS
flag is available. So, I pass these configs to CMake: -DCMAKE_CXX_FLAGS=-Wno-restrict -Wno-class-memaccess
.