public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
@ 2003-06-15 19:12 ` pinskia@physics.uc.edu
  2004-01-31 18:24 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-15 19:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-15 19:12:28
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-06-15 19:12 -------
Still happens on the mainline (20030615).


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
  2003-06-15 19:12 ` [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short pinskia@physics.uc.edu
@ 2004-01-31 18:24 ` pinskia at gcc dot gnu dot org
  2004-04-27  3:05 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31 18:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-31 18:24 -------
*** Bug 13945 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |debian-gcc at lists dot
                   |                            |debian dot org


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
  2003-06-15 19:12 ` [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short pinskia@physics.uc.edu
  2004-01-31 18:24 ` pinskia at gcc dot gnu dot org
@ 2004-04-27  3:05 ` pinskia at gcc dot gnu dot org
  2004-04-27 13:06 ` falk at debian dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27  3:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-27 02:46 -------
The problem I see here is that the error is just written wrong.

I think it should say something like:
warning: passing arg 1 of `func' is not converted due to a prototype.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
   Last reconfirmed|2003-11-09 20:10:59         |2004-04-27 02:46:01
               date|                            |


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
                   ` (2 preceding siblings ...)
  2004-04-27  3:05 ` pinskia at gcc dot gnu dot org
@ 2004-04-27 13:06 ` falk at debian dot org
  2004-04-27 15:27 ` jsm at polyomino dot org dot uk
  2004-07-06  7:11 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: falk at debian dot org @ 2004-04-27 13:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From falk at debian dot org  2004-04-27 12:46 -------
No, the message really means what it says. This warning was designed for people
who also use compilers which do not support prototypes. Nowadays, it is very 
unlikely to be useful for anybody; IMHO we might as well remove it.

-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
                   ` (3 preceding siblings ...)
  2004-04-27 13:06 ` falk at debian dot org
@ 2004-04-27 15:27 ` jsm at polyomino dot org dot uk
  2004-07-06  7:11 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-04-27 15:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jsm at polyomino dot org dot uk  2004-04-27 14:44 -------
Subject: Re:  [-Wconversion] incorrect conversion warning for
 function taking a short

On Tue, 27 Apr 2004, falk at debian dot org wrote:

> No, the message really means what it says. This warning was designed for people
> who also use compilers which do not support prototypes. Nowadays, it is very 
> unlikely to be useful for anybody; IMHO we might as well remove it.

My proposal has been to usurp the option name for "warn for any implicit
conversion that may change a value", which would at least have uses (e.g.  
catching some signed/unsigned security issues); and I don't care much
about whether the other existing warnings remain available under
-Wconversion-traditional.  Implementing this has however never been a
priority.



-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
                   ` (4 preceding siblings ...)
  2004-04-27 15:27 ` jsm at polyomino dot org dot uk
@ 2004-07-06  7:11 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-06  7:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-06 07:11 -------
*** Bug 16378 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pepster at users dot
                   |                            |sourceforge dot net


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2008-11-14 23:14 ` pinskia at gcc dot gnu dot org
@ 2008-11-16  2:43 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-16  2:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from pinskia at gcc dot gnu dot org  2008-11-16 02:42 -------
*** Bug 38116 has been marked as a duplicate of this bug. ***


-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2008-11-14 23:13 ` pinskia at gcc dot gnu dot org
@ 2008-11-14 23:14 ` pinskia at gcc dot gnu dot org
  2008-11-16  2:43 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-14 23:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2008-11-14 23:13 -------
*** Bug 38116 has been marked as a duplicate of this bug. ***


-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2006-11-06 13:55 ` schwab at suse dot de
@ 2008-11-14 23:13 ` pinskia at gcc dot gnu dot org
  2008-11-14 23:14 ` pinskia at gcc dot gnu dot org
  2008-11-16  2:43 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-14 23:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pinskia at gcc dot gnu dot org  2008-11-14 23:12 -------
*** Bug 38121 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paulf at free dot fr


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
  2006-07-05 11:35 ` lopezibanez at gmail dot com
  2006-07-05 11:37 ` rguenth at gcc dot gnu dot org
@ 2006-11-06 13:55 ` schwab at suse dot de
  2008-11-14 23:13 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: schwab at suse dot de @ 2006-11-06 13:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from schwab at suse dot de  2006-11-06 13:55 -------
*** Bug 29739 has been marked as a duplicate of this bug. ***


-- 

schwab at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaco at kroon dot co dot za


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
  2006-07-05 11:35 ` lopezibanez at gmail dot com
@ 2006-07-05 11:37 ` rguenth at gcc dot gnu dot org
  2006-11-06 13:55 ` schwab at suse dot de
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-07-05 11:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2006-07-05 11:37 -------
See comment #1, this is how it is intended.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short
       [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
@ 2006-07-05 11:35 ` lopezibanez at gmail dot com
  2006-07-05 11:37 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 12+ messages in thread
From: lopezibanez at gmail dot com @ 2006-07-05 11:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from lopezibanez at gmail dot com  2006-07-05 11:34 -------
I think we may close this bug report since either:

* The solution is to split the functionality of Wconversion as conceived by the
Wcoercion project http://gcc.gnu.org/wiki/Wcoercion#Background. In that case,
this is a duplicate of bug 9072.

* The message is misleading. Maybe it should say: passing arg 1 of 'func' as
short instead of 'int' due to prototype. If you agree, I can generate a patch
in no time.

* This is not a bug. As said in comment 5, Wconversion is meant to warn about
conversions that would be different in the absence of prototypes. So we may
just close the bug.


-- 


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-11-16  2:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020509144601.6614.josh.dybnis@sandtechnology.com>
2003-06-15 19:12 ` [Bug c/6614] [-Wconversion] incorrect conversion warning for function taking a short pinskia@physics.uc.edu
2004-01-31 18:24 ` pinskia at gcc dot gnu dot org
2004-04-27  3:05 ` pinskia at gcc dot gnu dot org
2004-04-27 13:06 ` falk at debian dot org
2004-04-27 15:27 ` jsm at polyomino dot org dot uk
2004-07-06  7:11 ` pinskia at gcc dot gnu dot org
     [not found] <bug-6614-1398@http.gcc.gnu.org/bugzilla/>
2006-07-05 11:35 ` lopezibanez at gmail dot com
2006-07-05 11:37 ` rguenth at gcc dot gnu dot org
2006-11-06 13:55 ` schwab at suse dot de
2008-11-14 23:13 ` pinskia at gcc dot gnu dot org
2008-11-14 23:14 ` pinskia at gcc dot gnu dot org
2008-11-16  2:43 ` pinskia at gcc dot gnu dot org

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).