I am getting this error:
I have done the setting in Project in Build setting:
I have done the setting in Target in Build setting:
I have used the following solution
1) #pragma unused(parameterName), which is working
But the problem is, I have used too many file Where this error is coming, so I want to know if any common solution is available for this.
(*) any one can try the below steps to find this kind of error: sample-videochat-webrtc
Create swift Project
Add file, import and build then error will come
OK, finally I was able to reproduce the issue on the sample project. This issue is a result of the fact that in the "sample-chat-swift" project among "Other Warning Flags" there is -Wextra
flag (you can see it in project.pbxproj) which according to Diagnostic flags in Clang
Also controls -Wignored-qualifiers, -Winitializer-overrides, -Wmissing-field-initializers, -Wmissing-method-return-type, -Wsemicolon-before-method-body, -Wsign-compare, -Wunused-parameter.
And since the flags from "Other Warning Flags" are added after explicitly configured flags to the command line, -Wextra
overrides -Wno-unused-parameter
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With