diff options
author | Jim Meyering <meyering@fb.com> | 2014-11-06 21:16:52 -0600 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-11-30 21:08:32 -0800 |
commit | 2fae6cb1e3f6192652e487fede84b9decc69519e (patch) | |
tree | 7d570b4d182eb3e6a1d8fb8e3ae706648275a62e | |
parent | 157626b785aaae6220257a23c55eb5686f4e3dbd (diff) | |
download | sed-2fae6cb1e3f6192652e487fede84b9decc69519e.tar.gz |
maint: avoid a gcc "const discard" warning
* sed/compile.c (compile_program): Make a local "const" to avoid
discarding "const" attribute in assignment.
-rw-r--r-- | sed/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sed/compile.c b/sed/compile.c index f33e825..0e9eec6 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -1057,7 +1057,7 @@ compile_program(struct vector *vector) */ { char *version = read_label (); - char *compared_version; + char const *compared_version; compared_version = (*version == '\0') ? "4.0" : version; if (strverscmp (compared_version, SED_FEATURE_VERSION) > 0) bad_prog(_(ANCIENT_VERSION)); |