clang echoes some more warnings by default, fixed them

This commit is contained in:
Gwenhael Le Moine 2023-06-17 08:46:19 +02:00
parent fbce27e65d
commit 6b671b9b0f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
8 changed files with 17 additions and 17 deletions

View file

@ -2439,9 +2439,9 @@ void emulate( void ) {
schedule();
} while (
#if defined( WITH_DEBUGGER )
!enter_debugger
!enter_debugger
#else
1
1
#endif
);
);
}

View file

@ -366,7 +366,7 @@ int read_mem_file( char* name, word_4* mem, int size ) {
if ( NULL == ( fp = fopen( name, "r" ) ) ) {
if ( verbose )
fprintf( stderr, "ct open %s\n" );
fprintf( stderr, "ct open %s\n", name );
return 0;
}

View file

@ -123,7 +123,7 @@ int serial_init( void ) {
ir_fd = -1;
if ( useSerial ) {
sprintf( tty_dev_name, serialLine );
sprintf( tty_dev_name, "%s", serialLine );
if ( ( ir_fd = open( tty_dev_name, O_RDWR | O_NDELAY ) ) >= 0 ) {
if ( verbose )
printf( "IR connection on %s\n", tty_dev_name );

View file

@ -9,7 +9,7 @@
#include "x48.h"
#if defined( WITH_DEBUGGER )
#include "x48_debugger.h" /* in_debugger, enter_debugger */
#include "x48_debugger.h" /* in_debugger, enter_debugger */
#endif
static int interrupt_called = 0;

View file

@ -14,7 +14,7 @@
#include "x48_resources.h"
#if defined( WITH_DEBUGGER )
#include "x48_debugger.h" /* enter_debugger, USER_INTERRUPT, exec_flags, emulate_debug, debug */
#include "x48_debugger.h" /* enter_debugger, USER_INTERRUPT, exec_flags, emulate_debug, debug */
#endif
#if defined( GUI_IS_X11 )

View file

@ -322,7 +322,7 @@ t1_t2_ticks get_t1_t2( void ) {
#else
if ( adj_time_pending ) {
#endif
/*
/*
* We have been inside an interrupt for very long, maybe
* or we are sleeping in the debugger.
* Don't adjust the time, can't come from user, anyhow.
@ -349,7 +349,7 @@ t1_t2_ticks get_t1_t2( void ) {
diff_time = saturn.timer2;
adj_time = access_time - diff_time;
delta = abs( adj_time );
delta = labs( adj_time );
if ( delta > 0x3c000 ) /* Half a minute */
{

View file

@ -6390,12 +6390,12 @@ int get_ui_event( void ) {
}
}
#if defined( WITH_DEBUGGER )
else if ( xev.xbutton.button == Button3 ) {
else if ( xev.xbutton.button == Button3 ) {
/* TODO Make cut from the screen work. */
get_stack();
} else {
/* printf("In display %d\n", xev.xbutton.button); */
}
}
#endif
} else {
if ( xev.xbutton.button == Button1 ||

View file

@ -510,7 +510,7 @@ char* dec_string( word_20* addr, char* string ) {
c = read_nibbles( *addr, 2 );
*addr += 2;
if ( hp48_trans_tbl[ c ].trans ) {
sprintf( p, hp48_trans_tbl[ c ].trans );
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
p += strlen( p );
} else
*p++ = c;
@ -691,7 +691,7 @@ char* dec_library( word_20* addr, char* string ) {
for ( i = 0; i < libidsize; i++ ) {
c = read_nibbles( *addr + 2 * i + 7, 2 );
if ( hp48_trans_tbl[ c ].trans ) {
sprintf( p, hp48_trans_tbl[ c ].trans );
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
p += strlen( p );
} else
*p++ = c;
@ -798,7 +798,7 @@ char* dec_local_ident( word_20* addr, char* string ) {
c = read_nibbles( *addr, 2 );
*addr += 2;
if ( hp48_trans_tbl[ c ].trans ) {
sprintf( p, hp48_trans_tbl[ c ].trans );
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
p += strlen( p );
} else
*p++ = c;
@ -830,7 +830,7 @@ char* dec_global_ident( word_20* addr, char* string ) {
c = read_nibbles( *addr, 2 );
*addr += 2;
if ( hp48_trans_tbl[ c ].trans ) {
sprintf( p, hp48_trans_tbl[ c ].trans );
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
p += strlen( p );
} else
*p++ = c;
@ -979,7 +979,7 @@ char* xlib_name( int lib, int command, char* string ) {
c = read_nibbles( name_addr, 2 );
name_addr += 2;
if ( hp48_trans_tbl[ c ].trans ) {
sprintf( p, hp48_trans_tbl[ c ].trans );
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
p += strlen( p );
} else
*p++ = c;
@ -1117,7 +1117,7 @@ char* dec_char( word_20* addr, char* string ) {
*p++ = '\'';
if ( hp48_trans_tbl[ c ].trans ) {
sprintf( p, hp48_trans_tbl[ c ].trans );
sprintf( p, "%s", hp48_trans_tbl[ c ].trans );
p += strlen( p );
} else
*p++ = c;