"Unused parameter" build failure(s)
clang 3.4
-Wextra of clang incluses -Wunused-parameter which is not the case with gcc.
So, the following code will fail with clang but build with gcc:
int main(int argc, char *argv[])
{
}
clang -Werror -Wextra -c plop.c
gcc -Werror -Wextra -c plop.c
Package | Version | Supposed error message | Full log |
Bug report |
jffi | 1.0.2-11 | [exec] /«PKGBUILDDIR»/jni/jffi/Array.c:58:1: error: unused parameter 'env' [-Werror,-Wunused-parameter]
| Log |
|
switchsh | 0~20070801-3.1 | switchsh.c:69:14: error: unused parameter 'argc' [-Werror,-Wunused-parameter]
| Log |
|
2 errors