Merge pull request #4122 from neilt6/patch-1

Fixed compiler warning in mbed_retarget.cpp
pull/4153/head
Sam Grove 2017-04-10 16:38:08 -05:00 committed by GitHub
commit b2cd20c5c5
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ static void init_serial() {
#endif #endif
} }
#if MBED_CONF_FILESYSTEM_PRESENT
static inline int openmode_to_posix(int openmode) { static inline int openmode_to_posix(int openmode) {
int posix = openmode; int posix = openmode;
#ifdef __ARMCC_VERSION #ifdef __ARMCC_VERSION
@ -154,6 +155,7 @@ static inline int openmode_to_posix(int openmode) {
#endif #endif
return posix; return posix;
} }
#endif
extern "C" WEAK void mbed_sdk_init(void); extern "C" WEAK void mbed_sdk_init(void);
extern "C" WEAK void mbed_sdk_init(void) { extern "C" WEAK void mbed_sdk_init(void) {