This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/66529] New: terminals.c: sizeof pointer memaccess
- From: "pini_os at yahoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Jun 2015 17:29:59 +0000
- Subject: [Bug ada/66529] New: terminals.c: sizeof pointer memaccess
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66529
Bug ID: 66529
Summary: terminals.c: sizeof pointer memaccess
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: pini_os at yahoo dot fr
Target Milestone: ---
Compiling Ada frontend with -Wsizeof-pointer-memaccess reports a warning
because the bzero call in function 'child_static_tty' in gcc/ada/terminals.c
is:
bzero(&s, sizeof (&s));
but it should be:
bzero(&s, sizeof (s));