This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c/6614: incorrect conversion warning for function taking a short



>Number:         6614
>Category:       c
>Synopsis:       incorrect conversion warning for function taking a short
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 09 14:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Josh Dybnis
>Release:        2.95.3-6 mingw build
>Organization:
>Environment:
Windows XP/mingw
>Description:
incorrectly warns:

warning: passing arg 1 of `func' with different width due to prototype

when compiling:

void func (short);
void short_test (void) 
{  short x = 0;
   func(x);
}

with command line:

gcc -Wconversion -c test.c
>How-To-Repeat:
gcc -Wconversion -c test.c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]