From 20f234a8d6b6bff86e9f57e66a2d3612f81e56e1 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 31 Mar 2015 08:30:15 +0000 Subject: 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'. From-SVN: r221789 --- gcc/ada/ChangeLog | 6 ++++++ gcc/ada/terminals.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index e7c6749..8b9fbe5 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 a46e610..e44063b 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); -- cgit v1.1