Increase compiler warnings and fix them
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -Wall -Wextra -g $(all_includes)
|
||||
AM_CPPFLAGS = -Wall -Wextra -Wmissing-prototypes -g $(all_includes)
|
||||
|
||||
noinst_LIBRARIES = libdmssms.a
|
||||
|
||||
|
@@ -106,7 +106,7 @@ static const char *print_ct_dt(uint8_t s, uint8_t n, uint8_t *data, int eight_bi
|
||||
}
|
||||
|
||||
/* link DMS frame to list of TX frames */
|
||||
void link_dms_frame(nmt_t *nmt, struct dms_frame *frame)
|
||||
static void link_dms_frame(nmt_t *nmt, struct dms_frame *frame)
|
||||
{
|
||||
dms_t *dms = &nmt->dms;
|
||||
struct dms_frame **framep;
|
||||
@@ -121,7 +121,7 @@ void link_dms_frame(nmt_t *nmt, struct dms_frame *frame)
|
||||
}
|
||||
|
||||
/* unlink DMS frame from list of TX frames */
|
||||
void unlink_dms_frame(nmt_t *nmt, struct dms_frame *frame)
|
||||
static void unlink_dms_frame(nmt_t *nmt, struct dms_frame *frame)
|
||||
{
|
||||
dms_t *dms = &nmt->dms;
|
||||
struct dms_frame **framep;
|
||||
|
@@ -498,7 +498,7 @@ again:
|
||||
}
|
||||
}
|
||||
|
||||
const char *nmt_dsp_mode_name(enum dsp_mode mode)
|
||||
static const char *nmt_dsp_mode_name(enum dsp_mode mode)
|
||||
{
|
||||
static char invalid[16];
|
||||
|
||||
|
@@ -680,7 +680,7 @@ static struct nmt_parameter {
|
||||
/* Depending on P-value, direction and additional info, frame index (used for
|
||||
* nmt_frame[]) is decoded.
|
||||
*/
|
||||
enum nmt_mt decode_frame_mt(const uint8_t *digits, enum nmt_direction direction, int callack)
|
||||
static enum nmt_mt decode_frame_mt(const uint8_t *digits, enum nmt_direction direction, int callack)
|
||||
{
|
||||
if (direction == MS_TO_MTX || direction == BS_TO_MTX || direction == XX_TO_MTX) {
|
||||
/* MS/BS TO MTX */
|
||||
|
@@ -65,7 +65,7 @@ static int sms_ref = 0;
|
||||
/* Counters */
|
||||
#define PAGE_TRIES 3 /* How many time do we try to page the phone */
|
||||
|
||||
const char *nmt_state_name(enum nmt_state state)
|
||||
static const char *nmt_state_name(enum nmt_state state)
|
||||
{
|
||||
static char invalid[16];
|
||||
|
||||
@@ -110,7 +110,7 @@ const char *nmt_state_name(enum nmt_state state)
|
||||
return invalid;
|
||||
}
|
||||
|
||||
void nmt_display_status(void)
|
||||
static void nmt_display_status(void)
|
||||
{
|
||||
sender_t *sender;
|
||||
nmt_t *nmt;
|
||||
@@ -1799,7 +1799,7 @@ const char *nmt_get_frame(nmt_t *nmt)
|
||||
*/
|
||||
|
||||
/* Call control starts call towards mobile station. */
|
||||
int _out_setup(int callref, const char *caller_id, enum number_type caller_type, const char *dialing, const char *sms)
|
||||
static int _out_setup(int callref, const char *caller_id, enum number_type caller_type, const char *dialing, const char *sms)
|
||||
{
|
||||
sender_t *sender;
|
||||
nmt_t *nmt;
|
||||
@@ -1864,7 +1864,7 @@ int call_down_setup(int callref, const char *caller_id, enum number_type caller_
|
||||
{
|
||||
return _out_setup(callref, caller_id, caller_type, dialing, NULL);
|
||||
}
|
||||
int sms_out_setup(char *dialing, const char *caller_id, enum number_type caller_type, const char *sms)
|
||||
static int sms_out_setup(char *dialing, const char *caller_id, enum number_type caller_type, const char *sms)
|
||||
{
|
||||
return _out_setup(0, caller_id, caller_type, dialing, sms);
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
|
||||
#include <stdint.h>
|
||||
#include "tones.h"
|
||||
|
||||
static int16_t pattern[] = {
|
||||
0, 5320, 10063, 13716, 15883, 16328, 15004, 12054, 7798, 2697, -2697, -7798, -12054, -15004, -16328, -15883, -13716, -10063, -5320,
|
||||
|
Reference in New Issue
Block a user