"Empty body declaration" build failure(s)
clang 3.0
-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 |
blktap | 2.0.90-1 | vhd-util-read.c:595:3: error: if statement has empty body [-Werror,-Wempty-body]
| Log |
|
gltron | 0.70final-10 | event.c:392:44: error: if statement has empty body [-Werror,-Wempty-body]
| Log |
|
network-manager-strongswan | 1.1.2-2 | main.c:235:41: error: if statement has empty body [-Werror,-Wempty-body]
| Log |
|
3 errors