"Unused parameter" build failure(s)
clang 3.8.1
-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 |
ifhp | 3.5.20-14 | ifhp.c:1061:43: error: unused parameter 'infovar' [-Werror,-Wunused-parameter]
| Log |
|
switchsh | 0~20070801-3.2 | switchsh.c:69:14: error: unused parameter 'argc' [-Werror,-Wunused-parameter]
| Log |
|
2 errors