https://bugs.llvm.org/show_bug.cgi?id=43600
Bug ID: 43600
Summary: -Wincomplete-setjmp-declaration triggers on typedef
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected]
Android's bionic (libc) basically has code like:
typedef long jmp_buf[10];
void sigsetjmp();
This triggers the warning:
<source>:2:6: warning: declaration of built-in function 'sigsetjmp' requires
the declaration of the 'jmp_buf' type, commonly provided in the header
<setjmp.h>. [-Wincomplete-setjmp-declaration]
void sigsetjmp();
^
The warning tells me to declare jmp_buf, which I believe I did w/ the typedef?
See also r367387.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs