Summary: | sys-devel/gcc: does not compile pthread_cleanup_* macros with -Wempty-body -Werror | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Clex. <clex42> |
Component: | [OLD] GCC Porting | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Clex.
2009-06-11 09:13:50 UTC
What do you mean with "does not compile"? This flag enables a warning and shouldn't change the resulting binary (and it doesn't with gcc-4.3.2) (or prevent it from being created, unless -Werror is used). And isn't this "do; while (0);" construct useless anyways? It does not compile with -Werror :) Sure that `do; while (0);` is useless, but I didn't code it. I just would like use pthread_cleanup_* macros with -Wempty-body without that warning. you didnt post `emerge --info` like the bug documentation states and glibc-2.10 works just fine for me $ cat test.c #include <pthread.h> int main(void) { pthread_cleanup_push(NULL, NULL); pthread_cleanup_pop(0); return 0; } $ gcc-4.3.2 -c test.c -Wall -Wempty-body -Werror <no output at all> |