aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2022-04-12 02:31:17 -0500
committerRob Landley <rob@landley.net>2022-04-12 02:31:17 -0500
commita6e0c86f77cbb97cd56249b3fe04822d0f897304 (patch)
tree06dc91a274b3f2996acd2e08d12e40f4ccef3f88
parent50361a1b07b9d9e4fff983ef2a5e233625851de2 (diff)
downloadtoybox-a6e0c86f77cbb97cd56249b3fe04822d0f897304.tar.gz
All PEDANTIC_ARGS does is set a macro that's never used.
-rw-r--r--Config.in6
-rw-r--r--lib/toyflags.h6
2 files changed, 0 insertions, 12 deletions
diff --git a/Config.in b/Config.in
index b626f3c1..62185dfb 100644
--- a/Config.in
+++ b/Config.in
@@ -136,12 +136,6 @@ config TOYBOX_DEBUG
Enable extra checks for debugging purposes. All of them catch
things that can only go wrong at development time, not runtime.
-config TOYBOX_PEDANTIC_ARGS
- bool "Pedantic argument checking"
- default n
- help
- Check arguments for commands that have no arguments.
-
config TOYBOX_UID_SYS
int "First system UID"
default 100
diff --git a/lib/toyflags.h b/lib/toyflags.h
index c8830874..0c65735c 100644
--- a/lib/toyflags.h
+++ b/lib/toyflags.h
@@ -37,9 +37,3 @@
// Error code to return if argument parsing fails (default 1)
#define TOYFLAG_ARGFAIL(x) (x<<24)
-
-#if CFG_TOYBOX_PEDANTIC_ARGS
-#define NO_ARGS ">0"
-#else
-#define NO_ARGS 0
-#endif