aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2015-03-31 08:30:15 +0000
committerTom de Vries <vries@gcc.gnu.org>2015-03-31 08:30:15 +0000
commit20f234a8d6b6bff86e9f57e66a2d3612f81e56e1 (patch)
tree02825f02fa3cbd91f5e3dff2aeca5a618436d6e0 /gcc
parentb7e85ee1070cecffe7dc6b722b67afd758663fb2 (diff)
downloadgcc-20f234a8d6b6bff86e9f57e66a2d3612f81e56e1.zip
gcc-20f234a8d6b6bff86e9f57e66a2d3612f81e56e1.tar.gz
gcc-20f234a8d6b6bff86e9f57e66a2d3612f81e56e1.tar.bz2
Fix bzero warning in child_setup_tty
2015-03-31 Tom de Vries <tom@codesourcery.com> 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ada/ChangeLog6
-rw-r--r--gcc/ada/terminals.c4
2 files changed, 8 insertions, 2 deletions
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 <tom@codesourcery.com>
+
+ 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 <ebotcazou@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_Deref>: 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);