public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kevin.waugh at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/46073] New: __builtin_choose_expr outputs warnings for unused expression Date: Mon, 18 Oct 2010 18:57:00 -0000 [thread overview] Message-ID: <bug-46073-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46073 Summary: __builtin_choose_expr outputs warnings for unused expression Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned@gcc.gnu.org ReportedBy: kevin.waugh@gmail.com $ gcc -std=c99 -Wall -x c - << EOF void A(int * p) {} void B(double * p) {} int main() { int * p = 0; __builtin_choose_expr(__builtin_types_compatible_p(__typeof__(p), int *), A(p), B(p)); return 0; } EOF <stdin>: In function ‘main’: <stdin>:5: warning: passing argument 1 of ‘B’ from incompatible pointer type $ gcc -v Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5493~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5493)
next reply other threads:[~2010-10-18 18:57 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-10-18 18:57 kevin.waugh at gmail dot com [this message] 2010-10-18 19:01 ` [Bug c/46073] " pinskia at gcc dot gnu.org 2010-10-18 19:17 ` kevin.waugh at gmail dot com 2010-10-18 19:55 ` joseph at codesourcery dot com
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-46073-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.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).