diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-04-10 23:28:46 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-04-10 23:41:16 +0200 |
commit | 378091c9ef6d25a076125f0b82dce1a155c0e8f0 (patch) | |
tree | 651ea3d167e7bc3bf49cf8c755118acbf9e9a3da /rts | |
parent | 7443e5c8dae24b83f5f4975c7accce02b819029c (diff) | |
download | haskell-378091c9ef6d25a076125f0b82dce1a155c0e8f0.tar.gz |
RtsFlags: Un-constify temporary buffer
Otherwise we get a const-ness mismatch when we free the buffer, which
for some reason gcc 5.3 didn't notice.
Diffstat (limited to 'rts')
-rw-r--r-- | rts/RtsFlags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c index 7f0821a56e..9db3cd4786 100644 --- a/rts/RtsFlags.c +++ b/rts/RtsFlags.c @@ -1566,7 +1566,7 @@ static rtsBool read_heap_profiling_flag(const char *arg_in) // However, for sanity we want to guarantee const-correctness and parsing // really ought to be an immutable operation. To avoid rewriting the parser // we just operate on a temporary copy of the argument. - const char *arg = strdup(arg_in); + char *arg = strdup(arg_in); rtsBool error = rtsFalse; switch (arg[2]) { case '\0': |