Increase compiler warnings and fix them

This commit is contained in:
Andreas Eversberg
2024-04-05 21:51:41 +02:00
parent 470fc49341
commit 6e2fd793ac
123 changed files with 231 additions and 168 deletions

View File

@@ -1,4 +1,4 @@
AM_CPPFLAGS = -Wall -Wextra -g $(all_includes)
AM_CPPFLAGS = -Wall -Wextra -Wmissing-prototypes -g $(all_includes)
bin_PROGRAMS = \
imts \

View File

@@ -62,8 +62,11 @@ wave_rec_t wave_tx_rec;
/* dummy functions */
int num_kanal = 1; /* only one channel used for debugging */
void *get_sender_by_empfangsfrequenz(void);
void *get_sender_by_empfangsfrequenz() { return NULL; }
void display_measurements_add(void);
void display_measurements_add() {}
void display_measurements_update(void);
void display_measurements_update() {}
static void print_help(const char *arg0)

View File

@@ -526,7 +526,7 @@ void sender_receive(sender_t *sender, sample_t *samples, int length, double rf_l
}
const char *imts_dsp_mode_name(enum dsp_mode mode)
static const char *imts_dsp_mode_name(enum dsp_mode mode)
{
static char invalid[16];

View File

@@ -177,7 +177,7 @@ void imts_list_channels(void)
#define RECEIVE_TIME 0.200 /* Time until detecting receive signal (Guard tone) from mobile */
#define ANSWER_TIME 0.200 /* Time until detecting answer signal (Connect tone) from mobile */
const char *imts_state_name(enum imts_state state)
static const char *imts_state_name(enum imts_state state)
{
static char invalid[16];