From 74d2b9071b2a3fb1b5615b7db181661fd225bcc4 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 14 Oct 2016 10:51:58 +0000 Subject: [PATCH] * gcov-io.c (gcov_open): Deconstify 'mode'. From-SVN: r241155 --- gcc/ChangeLog | 4 ++++ gcc/gcov-io.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b907c6622d5..de8a650f260 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-10-14 Nathan Sidwell + + * gcov-io.c (gcov_open): Deconstify 'mode'. + 2016-10-14 Martin Liska * fold-const.c (c_getstr): Support of properly \0-terminated diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index 1720d91d786..731c2cf07df 100644 --- a/gcc/gcov-io.c +++ b/gcc/gcov-io.c @@ -127,7 +127,7 @@ gcov_open (const char *name, int mode) #endif { #if IN_LIBGCOV - const int mode = 0; + int mode = 0; #endif #if GCOV_LOCKED struct flock s_flock; -- 2.30.2