@@ -265,7 +265,7 @@ void update_window(void) {
265265 fflush (stdout );
266266}
267267
268- void prep_show_v (bool retarded ) {
268+ void prep_show_v (void ) {
269269 uint offset = 0 ;
270270 uint mid_vi ;
271271 if (in_midp )
@@ -315,11 +315,11 @@ double seconds(double t1) {
315315 return (t1 - t0 );
316316}
317317
318- void diag_plain (bool retarded ) {
318+ void diag_plain (void ) {
319319 double t1 = utime ();
320320
321321 update_window ();
322- prep_show_v (retarded ); /* into diag_buf */
322+ prep_show_v (); /* into diag_buf */
323323 if (need_diag ) {
324324 diag ("%s" , diag_buf );
325325 if (debug )
@@ -341,7 +341,7 @@ void diag_walk_v(ulong ati, ulong end) {
341341 double t1 = utime ();
342342
343343 update_window ();
344- prep_show_v (0 ); /* into diag_buf */
344+ prep_show_v (); /* into diag_buf */
345345 if (need_diag ) {
346346 if (!(debug == 1 && ati ))
347347 diag ("%s: %lu / %lu" , diag_buf , ati , end );
@@ -365,7 +365,7 @@ void diag_walk_zv(mpz_t ati, mpz_t end) {
365365 double t1 = utime ();
366366
367367 update_window ();
368- prep_show_v (0 ); /* into diag_buf */
368+ prep_show_v (); /* into diag_buf */
369369 if (need_diag ) {
370370 if (!(debug == 1 && mpz_sgn (ati )))
371371 diag ("%s: %Zu / %Zu" , diag_buf , ati , end );
@@ -389,7 +389,7 @@ void diag_walk_pell(uint pc) {
389389 double t1 = utime ();
390390
391391 update_window ();
392- prep_show_v (0 ); /* into diag_buf */
392+ prep_show_v (); /* into diag_buf */
393393 if (need_diag ) {
394394 if (!(debug && pc ))
395395 diag ("%s: P%u" , diag_buf , pc );
@@ -410,7 +410,7 @@ void diag_walk_pell(uint pc) {
410410}
411411
412412void disp_batch (t_level * lp ) {
413- prep_show_v (0 ); /* into diag_buf */
413+ prep_show_v (); /* into diag_buf */
414414 if (lp -> have_square ) {
415415 uint l = strlen (diag_buf );
416416 sprintf (& diag_buf [l ], " [sq=%u]" , lp -> have_square );
@@ -801,7 +801,7 @@ ulong next_prime(ulong cur) {
801801 _GMP_next_prime (Z (np_p ));
802802 if (mpz_fits_ulong_p (Z (np_p )))
803803 return mpz_get_ui (Z (np_p ));
804- diag_plain (0 );
804+ diag_plain ();
805805 keep_diag ();
806806 report ("002 next_prime overflow\n" );
807807 exit (1 );
@@ -2495,7 +2495,7 @@ void walk_midp(t_level *prev, bool recover) {
24952495 do_recover :
24962496 if (apply_single (prev , cur , vi , p , x )) {
24972497 if (need_work )
2498- diag_plain (1 );
2498+ diag_plain ();
24992499 walk_v (cur , Z (zero ));
25002500 }
25012501 /* unallocate */
@@ -3255,7 +3255,7 @@ void recurse(e_is jump_continue) {
32553255 ) {
32563256 ++ level ;
32573257 if (need_work )
3258- diag_plain (0 );
3258+ diag_plain ();
32593259 continue ;
32603260 }
32613261 /* unapply a possible partial batch */
@@ -3284,14 +3284,14 @@ void recurse(e_is jump_continue) {
32843284 /* note: this returns 0 if t=1 */
32853285 if (!apply_single (prev_level , cur_level , cur_level -> vi , p , cur_level -> x )) {
32863286 if (need_work )
3287- diag_plain (0 );
3287+ diag_plain ();
32883288 -- value [cur_level -> vi ].vlevel ;
32893289 /* not redo_unforced, we may have improved max */
32903290 goto continue_unforced ;
32913291 }
32923292 ++ level ;
32933293 if (need_work )
3294- diag_plain (0 );
3294+ diag_plain ();
32953295 continue ; /* deeper */
32963296 }
32973297 }
0 commit comments