Merge pull request #9681 from NeilMacMullen/cross-compilation

Make a few trivial syntactic changes to better support cross-compilation
pull/9715/head
Cruz Monrreal 2019-02-13 17:10:23 -06:00 committed by GitHub
commit e34ecae6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -207,7 +207,7 @@ CellularContext *AT_CellularDevice::create_context(FileHandle *fh, const char *a
return ctx;
}
AT_CellularContext *prev;
AT_CellularContext *prev = NULL;
while (curr) {
prev = curr;
curr = (AT_CellularContext *)curr->_next;

View File

@ -990,7 +990,7 @@ void AT_CellularSMS::add_info(sms_info_t *info, int index, int part_number)
return;
}
sms_info_t *current = _sms_info;
sms_info_t *prev;
sms_info_t *prev = NULL;
bool found_msg = false;
while (current) {
prev = current;

View File

@ -26,10 +26,7 @@ typedef struct trace_s {
void (*mutex_release_f)(void);
} trace_t;
static trace_t m_trace = {
.mutex_wait_f = 0,
.mutex_release_f = 0,
};
static trace_t m_trace = {};
void mutex_wait_function_set(void (*mutex_wait_f)(void))
{