nat; Start to use gcc attribute to say that parameter may not be zero
This is an attempt to hint the compiler that it should check the parameters and warn when something is null. Sadly it does not work as expected.
This commit is contained in:
parent
0d711632f2
commit
4fcce9ea19
|
@ -102,6 +102,7 @@ int nm_state_event(enum nm_evt evt, uint8_t obj_class, void *obj,
|
|||
void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx)
|
||||
{}
|
||||
|
||||
static void queue_for_msc(struct bsc_msc_connection *con, struct msgb *msg) __attribute__((nonnull (1, 2)));
|
||||
static void queue_for_msc(struct bsc_msc_connection *con, struct msgb *msg)
|
||||
{
|
||||
if (write_queue_enqueue(&con->write_queue, msg) != 0) {
|
||||
|
|
Loading…
Reference in New Issue