From 3e4ea164a630a0248ae2efcfeee57ca26270828b Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Fri, 21 Jul 2017 22:37:36 +0200 Subject: Set description once for unknown flags --- colorize.c | 7 ++++--- 1 file 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; -- cgit v1.2.3