public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "photon at seznam dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type
Date: Sat, 12 Jun 2010 16:46:00 -0000 [thread overview]
Message-ID: <20100612164625.24518.qmail@sourceware.org> (raw)
In-Reply-To: <bug-40752-15110@http.gcc.gnu.org/bugzilla/>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
------- Comment #18 from photon at seznam dot cz 2010-06-12 16:46 -------
(In reply to comment #17)
> The patch was rejected but it may be accepted by using a new -Wno-* option to
> disable these warnings. Perhaps -Wno-conversion-after-promotion?
>
> Suggestions are welcome.
>
-Wconversion should be fixed to work as specified. No warning should be
generated for the following code:
char c = 2;
// warning: conversion to char from int may alter its value
c >>= 1;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752
next prev parent reply other threads:[~2010-06-12 16:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 19:17 [Bug c++/40752] New: -Wconversion generates false warnings photon at seznam dot cz
2009-07-14 19:21 ` [Bug c++/40752] " pinskia at gcc dot gnu dot org
2009-07-14 20:56 ` manu at gcc dot gnu dot org
2009-07-14 20:56 ` manu at gcc dot gnu dot org
2009-07-14 22:24 ` ian at airs dot com
2009-07-14 22:30 ` [Bug c++/40752] -Wconversion: do not warn for operands not larger than target type manu at gcc dot gnu dot org
2009-07-15 7:50 ` photon at seznam dot cz
2009-07-15 7:55 ` photon at seznam dot cz
2009-07-15 8:14 ` pinskia at gcc dot gnu dot org
2009-07-15 14:00 ` ian at airs dot com
2009-07-15 14:15 ` joseph at codesourcery dot com
2009-07-15 16:56 ` photon at seznam dot cz
2009-07-15 16:58 ` pinskia at gcc dot gnu dot org
2009-07-15 17:00 ` pinskia at gcc dot gnu dot org
2009-07-15 18:24 ` photon at seznam dot cz
2009-07-16 7:07 ` [Bug c++/40752] -Wconversion generates false warnings " photon at seznam dot cz
2009-07-23 15:35 ` manu at gcc dot gnu dot org
2009-09-05 14:05 ` manu at gcc dot gnu dot org
2010-06-11 20:22 ` manu at gcc dot gnu dot org
2010-06-12 16:46 ` photon at seznam dot cz [this message]
[not found] <bug-40752-4@http.gcc.gnu.org/bugzilla/>
2011-09-25 21:55 ` manu at gcc dot gnu.org
2012-03-24 20:21 ` manu at gcc dot gnu.org
2012-03-24 21:40 ` DeusExSophismata at gmail dot com
2012-05-05 15:31 ` wessjunk at gmail dot com
2012-05-05 16:05 ` manu at gcc dot gnu.org
2012-06-20 14:59 ` dichlofos-mv at yandex dot ru
2014-02-10 1:14 ` chengniansun at gmail dot com
2014-09-16 21:07 ` hariharan.gcc at gmail 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=20100612164625.24518.qmail@sourceware.org \
--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).