public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc.hall at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/55383] New: -Wcast-qual reports incorrect message
Date: Sun, 18 Nov 2012 19:21:00 -0000	[thread overview]
Message-ID: <bug-55383-4@http.gcc.gnu.org/bugzilla/> (raw)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55383

             Bug #: 55383
           Summary: -Wcast-qual reports incorrect message
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gcc.hall@gmail.com


------------------------------------------------------
#include <string.h>
int
main( int argc, char *argv[] )
{
  volatile double val;
  memset( (void*)&val, 0, sizeof(double) );
}
---------------------------------------------------------

 gcc -Wcast-qual bug.c
bug.c: In function 'main':
bug.c:7:11: warning: cast discards '__attribute__((noreturn))' qualifier from
pointer target type [-Wcast-qual]

~/j/ge* gcc -v               
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --disable-build-with-cxx
--disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.2 20120921 (Red Hat 4.7.2-2) (GCC)


             reply	other threads:[~2012-11-18 19:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-18 19:21 gcc.hall at gmail dot com [this message]
2012-11-18 21:15 ` [Bug c/55383] " manu at gcc dot gnu.org
2013-06-08 12:54 ` gerald at pfeifer dot com
2013-06-08 17:18 ` manu at gcc dot gnu.org
2014-03-10 10:43 ` magnus.reftel at gmail dot com
2014-03-10 10:52 ` manu at gcc dot gnu.org
2014-03-10 11:06 ` manu at gcc dot gnu.org
2014-03-10 15:35 ` gerald at pfeifer dot com
2014-03-11  6:54 ` magnus.reftel at gmail dot com
2014-03-11  7:00 ` magnus.reftel at gmail dot com
2014-03-11 12:48 ` magnus.reftel at gmail dot com
2014-03-18  7:59 ` magnus.reftel at gmail dot com
2014-03-18 12:48 ` manu at gcc dot gnu.org
2014-03-18 19:59 ` manu at gcc dot gnu.org
2014-03-18 20:06 ` manu at gcc dot gnu.org
2014-03-18 23:21 ` manu at gcc dot gnu.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-55383-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: link
Be 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).