We only need one capability marked with a "*".
authorWayne Davison <wayne@opencoder.net>
Sun, 21 Jun 2020 05:09:08 +0000 (22:09 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 21 Jun 2020 05:09:08 +0000 (22:09 -0700)
options.c

index 2c1d7ce4b8f17edd05545443bdb0df0b34bc00b0..bb0e863842ff9b0231e23c76a0e74e6556b0f05d 100644 (file)
--- a/options.c
+++ b/options.c
@@ -640,19 +640,17 @@ static void print_capabilities(enum logcode f)
 #endif
                        "prealloc",
 
-       "*"
+       "*" /* All options after this point are hidden w/o -V -V */
 #ifndef HAVE_SIMD
                "no "
 #endif
                        "SIMD",
 
-       "*"
 #ifndef HAVE_ASM
                "no "
 #endif
                        "asm",
 
-       "*"
 #ifndef USE_OPENSSL
                "no "
 #endif
@@ -666,11 +664,11 @@ static void print_capabilities(enum logcode f)
                if (!cap)
                        break;
                if (*cap == '*') {
-                       if (version_opt_cnt < 2) {
+                       if (version_opt_cnt >= 2)
+                               capabilities[j]++;
+                       else
                                capabilities[j] = NULL;
-                               break;
-                       }
-                       capabilities[j]++;
+                       break;
                }
        }