diff options
author | Steven Schubiger <stsc@refcnt.org> | 2017-07-21 22:37:36 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2017-07-21 22:37:36 +0200 |
commit | 3e4ea164a630a0248ae2efcfeee57ca26270828b (patch) | |
tree | e761f7c8b3a62abe7a6223d364d2ca3c1646ba1e | |
parent | d215e03ff642b2d17270402cc15b66b9429a69c6 (diff) | |
download | colorize-3e4ea164a630a0248ae2efcfeee57ca26270828b.tar.gz colorize-3e4ea164a630a0248ae2efcfeee57ca26270828b.tar.bz2 |
Set description once for unknown flags
-rw-r--r-- | colorize.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |