"Empty body declaration" build failure(s)
clang 3.8.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 |
wbar | 2.3.4-6 | ../src/core/Main.cc:231:20: error: while loop has empty body [-Werror,-Wempty-body]
| Log |
741741
|
1 errors