mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Silence compiler warnings
- Comparisons between signed and unsigned - Unused parameter produced by gcc -Wall -Wextra
This commit is contained in:
@ -1558,6 +1558,8 @@ loop(void)
|
||||
void
|
||||
deadly_handler(int signum)
|
||||
{
|
||||
(void)signum; /* silence unused warning */
|
||||
|
||||
if ( ! sig_exit ) {
|
||||
sig_exit = 1;
|
||||
kill(0, SIGTERM);
|
||||
|
2
term.c
2
term.c
@ -244,7 +244,7 @@ struct baud_codes {
|
||||
#endif /* of HIGH_BAUD */
|
||||
};
|
||||
|
||||
#define BAUD_TABLE_SZ (sizeof(baud_table) / sizeof(baud_table[0]))
|
||||
#define BAUD_TABLE_SZ ((int)(sizeof(baud_table) / sizeof(baud_table[0])))
|
||||
|
||||
int
|
||||
term_baud_up (int baud)
|
||||
|
Reference in New Issue
Block a user