c/376: %Zu gives a bogus warning

ulfc@engr.sgi.com ulfc@engr.sgi.com
Tue Jul 4 03:26:00 GMT 2000


>Number:         376
>Category:       c
>Synopsis:       %Zu gives a bogus warning
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 04 03:26:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     ulfc@engr.sgi.com
>Release:        2.96
>Organization:
>Environment:
Any
>Description:
The attached testcase will generate the warning:

/tmp/@4682.1: In function `main':
/tmp/@4682.1:3: warning: unsigned int format, __foo_t arg (arg 2)
>How-To-Repeat:
gcc -Wall test.c -o test.o -c
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"

ZXh0ZXJuIGludCBwcmludGYgKGNvbnN0IGNoYXIgKiwgLi4uKTsKdHlwZWRlZiB1bnNpZ25lZCBp
bnQgX19mb29fdDsKaW50IG1haW4gKHZvaWQpIHsgX19mb29fdCB4OyBwcmludGYgKCIlWnUiLCB4
KTsgcmV0dXJuIDA7ICB9Cg==


More information about the Gcc-prs mailing list