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