This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/7655: -W name compatible, -W strict pointer compatible
- From: ac131313 at redhat dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 20 Aug 2002 14:44:14 -0000
- Subject: c/7655: -W name compatible, -W strict pointer compatible
- Reply-to: ac131313 at redhat dot com
>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: