Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GasimGasimzada opened this issue Feb 27, 2022 · 2 comments

Comments

@GasimGasimzada
Copy link

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

@Pierre-Terdiman
Copy link

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

@GasimGasimzada
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants