summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-25 18:21:54 +0000
committermidipix <writeonce@midipix.org>2024-03-25 18:21:54 +0000
commite86543caba68fdcf018f8987a2467857d8a3f9cd (patch)
treef0bca6b8217f960421dafaa771f522a6e0a75fca
parent156a0674b0a26149b2189989cd9321ad5c3c0dca (diff)
downloadslibtool-e86543caba68fdcf018f8987a2467857d8a3f9cd.tar.bz2
slibtool-e86543caba68fdcf018f8987a2467857d8a3f9cd.tar.xz
slibtoolize mode: driver: added --warnings and --no-warnings support.
-rw-r--r--src/internal/slibtool_driver_impl.h2
-rw-r--r--src/skin/slbt_skin_stoolie.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 656b50a..65e5f96 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -112,6 +112,8 @@ enum app_tags {
TAG_STLE_DRY_RUN,
TAG_STLE_SILENT,
TAG_STLE_VERBOSE,
+ TAG_STLE_WARNINGS,
+ TAG_STLE_NO_WARNINGS,
};
struct slbt_split_vector {
diff --git a/src/skin/slbt_skin_stoolie.c b/src/skin/slbt_skin_stoolie.c
index 5aa6700..598a410 100644
--- a/src/skin/slbt_skin_stoolie.c
+++ b/src/skin/slbt_skin_stoolie.c
@@ -41,5 +41,12 @@ const slbt_hidden struct argv_option slbt_stoolie_options[] = {
"generate lots of informational messages "
"that nobody can understand."},
+ {"warnings", 'W',TAG_STLE_WARNINGS,ARGV_OPTARG_REQUIRED,0,
+ "all|none|error|doubt|concern|environment|file",0,
+ "specify category of warnings to display (or not)."},
+
+ {"no-warnings", 0,TAG_STLE_NO_WARNINGS,ARGV_OPTARG_NONE,0,0,0,
+ "suppress all warning messages (or not)."},
+
{0,0,0,0,0,0,0,0}
};