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/7655: -W name compatible, -W strict pointer compatible


>Number:         7655
>Category:       c
>Synopsis:       -W name compatible, -W strict pointer compatible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 20 07:46:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Issue a warning when two variables type names do not match
rather than their actual names.  Or a variation.  Things
like:

char *a;
unsigned char *b;
a = b; // warning

This could also go into a -Wstrict-pointers?
But also:

typedef unsigned char bfd_byte;
bfd_byte *a;
unsigned char *b;
a = b; // warning
>How-To-Repeat:

>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]