"Empty body declaration" build failure(s)
clang 3.1
-Wempty-body warning is enabled by default which is not the case with gcc.
So, the following code will fail with clang but build with gcc:
int main() {
if (1);
}
clang -Werror -c plop.c
gcc -Werror -c plop.c
Package | Version | Supposed error message | Full log |
Bug report |
gltron | 0.70final-10 | event.c:392:44: error: if statement has empty body [-Werror,-Wempty-body]
| Log |
|
libnsgif | 0.0.1-1.1 | src/libnsgif.c:912:120: error: while loop has empty body [-Werror,-Wempty-body]
| Log |
741693
|
modemmanager | 0.5.2.0-1 | result.c:59:27: error: if statement has empty body [-Werror,-Wempty-body]
| Log |
|
3 errors