[Bug ada/66529] New: terminals.c: sizeof pointer memaccess
pini_os at yahoo dot fr
gcc-bugzilla@gcc.gnu.org
Sat Jun 13 17:30:00 GMT 2015
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));
More information about the Gcc-bugs
mailing list