From a6e0c86f77cbb97cd56249b3fe04822d0f897304 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 12 Apr 2022 02:31:17 -0500 Subject: [PATCH] All PEDANTIC_ARGS does is set a macro that's never used. --- Config.in | 6 ------ lib/toyflags.h | 6 ------ 2 files changed, 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 -- 2.39.2