[Linux] GCC error: passing argument 1 to restrict-qualified parameter aliases with argument 5
GasimGasimzada opened this issue · 2 comments
GasimGasimzada commented
The error is happening from here:
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 commented
The best thing to do here would probably be to change the code and remove the restrict qualifiers.
GasimGasimzada commented
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
.