Fix compiler warnings

This commit is contained in:
Andreas Eversberg
2018-01-27 15:52:33 +01:00
parent 4cc33c5b0d
commit 6df0eb46cc
9 changed files with 12 additions and 9 deletions

View File

@@ -379,7 +379,7 @@ got_sync:
break;
case FSK_SYNC_NEGATIVE:
bit = 1 - bit;
/* fall through */
/* FALLTHRU */
case FSK_SYNC_POSITIVE:
fsk->rx_buffer[fsk->rx_buffer_count] = bit + '0';
if (++fsk->rx_buffer_count == 150) {

View File

@@ -454,7 +454,7 @@ int init_telegramm(void)
const char *telegramm2rufnummer(telegramm_t *telegramm)
{
static char rufnummer[9];
static char rufnummer[32]; /* make GCC happy (overflow check) */
sprintf(rufnummer, "%d%d%05d", telegramm->futln_nationalitaet, telegramm->futln_heimat_fuvst_nr, telegramm->futln_rest_nr);

View File

@@ -30,7 +30,7 @@
const char *transaction2rufnummer(transaction_t *trans)
{
static char rufnummer[9];
static char rufnummer[32]; /* make GCC happy (overflow check) */
sprintf(rufnummer, "%d%d%05d", trans->futln_nat, trans->futln_fuvst, trans->futln_rest);