]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/test_tparm.c
ncurses 6.5 - patch 20240504
[ncurses.git] / test / test_tparm.c
index 1c4e0d4c2beae380ef6b97f0753d4f0ed6a220a3..50289defdf603dd7cdfd460cf52e0d04daee424e 100644 (file)
@@ -29,7 +29,7 @@
 /*
  * Author: Thomas E. Dickey
  *
- * $Id: test_tparm.c,v 1.37 2023/04/28 23:12:00 tom Exp $
+ * $Id: test_tparm.c,v 1.39 2023/11/11 01:00:03 tom Exp $
  *
  * Exercise tparm/tiparm, either for all possible capabilities with fixed
  * parameters, or one capability with specific combinations of parameters.
@@ -69,11 +69,17 @@ failed(const char *msg)
 #if HAVE_TIGETSTR
 
 static int a_opt;
-static int i_opt;
 static int p_opt;
-static int s_opt;
 static int v_opt;
 
+#if HAVE_TIPARM
+static int i_opt;
+#endif
+
+#if HAVE_TIPARM_S
+static int s_opt;
+#endif
+
 /*
  * Total tests (and failures):
  */
@@ -605,6 +611,8 @@ main(int argc, char *argv[])
                    all_caps[len_caps++] = strdup(ExtStrname(term, (int) n, strnames));
                }
            }
+#else
+           (void) std_caps;
 #endif
 
            /*