public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pavel.morozkin at gmail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/29399] Wrong definition of setjmp Date: Thu, 28 Jul 2022 16:33:43 +0000 [thread overview] Message-ID: <bug-29399-131-XGwmkTs5cX@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29399-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29399 --- Comment #4 from Pavel M <pavel.morozkin at gmail dot com> --- Another example: #define _setjmp 0 #include <setjmp.h> void f(void) { jmp_buf x; setjmp(x); } <source>:1:17: error: expected identifier or '(' before numeric constant 1 | #define _setjmp 0 | ^ <source>: In function 'f': <source>:1:17: error: called object is not a function or function pointer 1 | #define _setjmp 0 | ^ /usr/include/setjmp.h:62:25: note: in expansion of macro '_setjmp' 62 | #define setjmp(env) _setjmp (env) | ^~~~~~~ Compiler returned: 1 Per C all identifiers that begin with an underscore, followed by a lowercase letter AND used as macros are non-reserved. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-07-28 16:33 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-07-24 19:25 [Bug libc/29399] New: " pavel.morozkin at gmail dot com 2022-07-24 21:28 ` [Bug libc/29399] " sam at gentoo dot org 2022-07-24 21:34 ` ldv at sourceware dot org 2022-07-24 22:06 ` pavel.morozkin at gmail dot com 2022-07-24 22:09 ` schwab@linux-m68k.org 2022-07-28 16:33 ` pavel.morozkin at gmail dot com [this message] 2022-07-28 16:50 ` fweimer at redhat dot com 2022-07-28 19:38 ` zackw at panix dot com 2022-07-29 6:53 ` pavel.morozkin at gmail dot com 2022-07-29 12:25 ` fweimer at redhat dot com 2022-07-29 14:03 ` pavel.morozkin at gmail dot com 2022-07-29 15:53 ` schwab@linux-m68k.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-29399-131-XGwmkTs5cX@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).