aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-07-21 22:37:36 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-07-21 22:37:36 +0200
commit3e4ea164a630a0248ae2efcfeee57ca26270828b (patch)
treee761f7c8b3a62abe7a6223d364d2ca3c1646ba1e
parentd215e03ff642b2d17270402cc15b66b9429a69c6 (diff)
downloadcolorize-3e4ea164a630a0248ae2efcfeee57ca26270828b.tar.gz
colorize-3e4ea164a630a0248ae2efcfeee57ca26270828b.tar.bz2
Set description once for unknown flags
-rw-r--r--colorize.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/colorize.c b/colorize.c
index d947b92..2d6bfea 100644
--- a/colorize.c
+++ b/colorize.c
@@ -557,22 +557,23 @@ print_version (void)
#endif
const char *version_prefix, *version_string;
const char *c_flags, *ld_flags, *cpp_flags;
+ const char *const desc_flags_unknown = "unknown";
struct bytes_size bytes_size;
bool debug;
#ifdef CFLAGS
c_flags = to_str (CFLAGS);
#else
- c_flags = "unknown";
+ c_flags = desc_flags_unknown;
#endif
#ifdef LDFLAGS
ld_flags = to_str (LDFLAGS);
#else
- ld_flags = "unknown";
+ ld_flags = desc_flags_unknown;
#endif
#ifdef CPPFLAGS
cpp_flags = to_str (CPPFLAGS);
#else
- cpp_flags = "unknown";
+ cpp_flags = desc_flags_unknown;
#endif
#if DEBUG
debug = true;