fix compiler warnings

This commit is contained in:
matthias.ringwald@gmail.com 2014-09-29 20:06:39 +00:00
parent 6f7ecb09e3
commit bfee83c29b
2 changed files with 4 additions and 1 deletions

View File

@ -117,6 +117,9 @@ void embedded_set_ticks(uint32_t ticks);
// handler of a data source to signal the run loop that a new data
// is available.
void embedded_trigger(void);
// Execute run_loop once
// can be used to integrate BTstack's timer and data source processing into a foreign run runloop (not recommended)
void embedded_execute_once(void);
#endif
#if defined __cplusplus
}

View File

@ -63,7 +63,7 @@ extern run_loop_t run_loop_cocoa;
#endif
// assert run loop initialized
void run_loop_assert(void){
static void run_loop_assert(void){
#ifndef EMBEDDED
if (!the_run_loop){
log_error("ERROR: run_loop function called before run_loop_init!");