[llvm-bugs] [Bug 43600] New: -Wincomplete-setjmp-declaration triggers on typedef

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 7 22:14:28 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, jdoerfert at anl.gov,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk,
                    srhines at google.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191008/6d7f74c4/attachment.html>


More information about the llvm-bugs mailing list