[git commit] bc: remove unused strings

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 5 19:33:23 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=aad652a69a77401c83546c64fd9ef96bc3c953f1
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

   text	   data	    bss	    dec	    hex	filename
 987088	    485	   7296	 994869	  f2e35	busybox_old
 987079	    485	   7296	 994860	  f2e2c	busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 miscutils/bc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/miscutils/bc.c b/miscutils/bc.c
index b454d4b2b..0908d7cb9 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -5827,9 +5827,9 @@ static BcStatus bc_program_assign(char inst)
 		static const char *const msg[] = {
 			"bad ibase; must be [2, 16]",           //BC_RESULT_IBASE
 			"bad scale; must be [0, BC_SCALE_MAX]", //BC_RESULT_SCALE
-			"?1",                                   //BC_RESULT_LAST
-			"?2",                                   //BC_RESULT_CONSTANT
-			"?3",                                   //BC_RESULT_ONE
+			NULL, //can't happen                    //BC_RESULT_LAST
+			NULL, //can't happen                    //BC_RESULT_CONSTANT
+			NULL, //can't happen                    //BC_RESULT_ONE
 			"bad obase; must be [2, BC_BASE_MAX]",  //BC_RESULT_OBASE
 		};
 		size_t *ptr;


More information about the busybox-cvs mailing list