From 490c8090b1ccbc2496e3429a9bcf44ba67b81ac1 Mon Sep 17 00:00:00 2001 From: vries Date: Tue, 31 Mar 2015 08:30:15 +0000 Subject: [PATCH] Fix bzero warning in child_setup_tty 2015-03-31 Tom de Vries PR ada/65490 * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in bzero call is the same expression as the destination'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221789 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ada/ChangeLog | 6 ++++++ gcc/ada/terminals.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index e7c67496c82..8b9fbe5b65f 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2015-03-31 Tom de Vries + + PR ada/65490 + * terminals.c (child_setup_tty): Fix warning 'argument to sizeof in + bzero call is the same expression as the destination'. + 2015-03-26 Eric Botcazou * gcc-interface/trans.c (Attribute_to_gnu) : New case. diff --git a/gcc/ada/terminals.c b/gcc/ada/terminals.c index a46e610fbb2..e44063b049d 100644 --- a/gcc/ada/terminals.c +++ b/gcc/ada/terminals.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 2008-2014, AdaCore * + * Copyright (C) 2008-2015, AdaCore * * * * GNAT is free software; you can redistribute it and/or modify it under * * terms of the GNU General Public License as published by the Free Soft- * @@ -1263,7 +1263,7 @@ child_setup_tty (int fd) int status; /* ensure that s is filled with 0 */ - bzero (&s, sizeof (&s)); + bzero (&s, sizeof (s)); /* Get the current terminal settings */ status = tcgetattr (fd, &s); -- 2.11.4.GIT