Skip to content

Commit b2cd20c

Browse files
authored
Merge pull request #4122 from neilt6/patch-1
Fixed compiler warning in mbed_retarget.cpp
2 parents e3edbab + 6b671e5 commit b2cd20c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform/mbed_retarget.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ static void init_serial() {
120120
#endif
121121
}
122122

123+
#if MBED_CONF_FILESYSTEM_PRESENT
123124
static inline int openmode_to_posix(int openmode) {
124125
int posix = openmode;
125126
#ifdef __ARMCC_VERSION
@@ -154,6 +155,7 @@ static inline int openmode_to_posix(int openmode) {
154155
#endif
155156
return posix;
156157
}
158+
#endif
157159

158160
extern "C" WEAK void mbed_sdk_init(void);
159161
extern "C" WEAK void mbed_sdk_init(void) {

0 commit comments

Comments
 (0)