PhysX icon indicating copy to clipboard operation
PhysX copied to clipboard

[Linux] GCC error: passing argument 1 to restrict-qualified parameter aliases with argument 5

Open GasimGasimzada opened this issue 2 years ago • 2 comments

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)?

GasimGasimzada avatar Feb 27 '22 12:02 GasimGasimzada

The best thing to do here would probably be to change the code and remove the restrict qualifiers.

Pierre-Terdiman avatar Feb 28 '22 14:02 Pierre-Terdiman

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.

GasimGasimzada avatar Mar 05 '22 19:03 GasimGasimzada