@@ -454,6 +454,8 @@ public void opt__P(int type, char *s)
454454 /*ARGSUSED*/
455455public void opt_b (int type , char * s )
456456{
457+ (void )s ; // avoid `unreferenced formal parameter` warning
458+
457459 switch (type )
458460 {
459461 case INIT :
@@ -474,6 +476,8 @@ public void opt_b(int type, char *s)
474476 /*ARGSUSED*/
475477public void opt_i (int type , char * s )
476478{
479+ (void )s ; // avoid `unreferenced formal parameter` warning
480+
477481 switch (type )
478482 {
479483 case TOGGLE :
@@ -491,6 +495,8 @@ public void opt_i(int type, char *s)
491495 /*ARGSUSED*/
492496public void opt__V (int type , char * s )
493497{
498+ (void )s ; // avoid `unreferenced formal parameter` warning
499+
494500 switch (type )
495501 {
496502 case TOGGLE :
@@ -815,6 +821,8 @@ public void opt_rscroll(int type, char *s)
815821 /*ARGSUSED*/
816822public void opt_query (int type , char * s )
817823{
824+ (void )s ; // avoid `unreferenced formal parameter` warning
825+
818826 switch (type )
819827 {
820828 case QUERY :
@@ -832,6 +840,8 @@ public void opt_query(int type, char *s)
832840 /*ARGSUSED*/
833841public void opt_mousecap (int type , char * s )
834842{
843+ (void )s ; // avoid `unreferenced formal parameter` warning
844+
835845 switch (type )
836846 {
837847 case TOGGLE :
@@ -852,6 +862,8 @@ public void opt_mousecap(int type, char *s)
852862 /*ARGSUSED*/
853863public void opt_wheel_lines (int type , char * s )
854864{
865+ (void )s ; // avoid `unreferenced formal parameter` warning
866+
855867 switch (type )
856868 {
857869 case INIT :
@@ -872,6 +884,8 @@ public void opt_linenum_width(int type, char *s)
872884{
873885 PARG parg ;
874886
887+ (void )s ; // avoid `unreferenced formal parameter` warning
888+
875889 switch (type )
876890 {
877891 case INIT :
@@ -896,6 +910,8 @@ public void opt_status_col_width(int type, char *s)
896910{
897911 PARG parg ;
898912
913+ (void )s ; // avoid `unreferenced formal parameter` warning
914+
899915 switch (type )
900916 {
901917 case INIT :
@@ -918,6 +934,8 @@ public void opt_status_col_width(int type, char *s)
918934 /*ARGSUSED*/
919935public void opt_filesize (int type , char * s )
920936{
937+ (void )s ; // avoid `unreferenced formal parameter` warning
938+
921939 switch (type )
922940 {
923941 case INIT :
@@ -1052,7 +1070,7 @@ public void opt_search_type(int type, char *s)
10521070 if (def_search_type & SRCH_WRAP ) * bp ++ = 'W' ;
10531071 for (i = 1 ; i <= NUM_SEARCH_COLORS ; i ++ )
10541072 if (def_search_type & SRCH_SUBSEARCH (i ))
1055- * bp ++ = '0' + i ;
1073+ * bp ++ = '0' + ( char ) i ;
10561074 if (bp == buf )
10571075 * bp ++ = '-' ;
10581076 * bp = '\0' ;
0 commit comments