From: Tom de Vries Date: Tue, 31 Mar 2015 08:30:15 +0000 (+0000) Subject: Fix bzero warning in child_setup_tty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20f234a8d6b6bff86e9f57e66a2d3612f81e56e1;p=gcc.git 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 --- 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);