mbed-os/platform
Francisco J. Manno 4398b1f3c1 Fix gcc [-Wsign-compare] warning
[Warning] mbed_board.c@99,36: comparison between signed and unsigned
integer expressions [-Wsign-compare] is seen during compilation.
Fix the warning and small improvements.

1. Change type of loop variable "i" to the same type as "size".
   Size is > 0 checked by the if statement and i stops at == size
   so none can be negative. However size still needs to be signed
   to detect error codes from vsnprintf.
2. Reduced scope of stdio_out_prev and make sure it's initialized.
3. Define a name for the error buffer size and use vsnprintf instead
   of vsprintf to avoid writing outside of the array.
   NOTE: the if(size > 0) statement doesn't need to change. If
   the message to write is larger than the buffer size vsnprintf
   truncates it automatically but still returns a positive value.
2017-04-19 18:37:37 +01:00
..
CThunk.h Add tags to our code 2016-10-04 15:02:44 -05:00
CallChain.cpp Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
CallChain.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
Callback.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
CircularBuffer.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
DirHandle.h FileSystem: Reverted deprecation of DirHandle 2017-03-14 11:02:34 -05:00
FileBase.cpp Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
FileBase.h Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
FileHandle.h Filesystem: Fixed typo in param naming 2017-03-14 11:04:22 -05:00
FileLike.h Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
FilePath.cpp Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
FilePath.h Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
FileSystemLike.cpp FileSystem: Reverted deprecation of DirHandle 2017-03-14 11:02:34 -05:00
FileSystemLike.h Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
FunctionPointer.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
LocalFileSystem.cpp FileSystem: Reverted deprecation of DirHandle 2017-03-14 11:02:34 -05:00
LocalFileSystem.h Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
PlatformMutex.h Add tags to our code 2016-10-04 15:02:44 -05:00
SingletonPtr.h Add tags to our code 2016-10-04 15:02:44 -05:00
Stream.cpp Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
Stream.h Filesystem: Moved retarget related file interfaces into platform 2017-03-14 11:02:34 -05:00
Transaction.h Add tags to our code 2016-10-04 15:02:44 -05:00
critical.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_alloc_wrappers.cpp Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_application.c Add a function to transfer control to another app 2017-02-18 19:48:14 -06:00
mbed_application.h Add a function to transfer control to another app 2017-02-18 19:48:14 -06:00
mbed_assert.c Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_assert.h Added mbed_preprocessor.h to collect common cpp definitions 2016-11-03 10:26:31 -05:00
mbed_board.c Fix gcc [-Wsign-compare] warning 2017-04-19 18:37:37 +01:00
mbed_critical.c Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_critical.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_debug.h Add tags to our code 2016-10-04 15:02:44 -05:00
mbed_error.c Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_error.h Add tags to our code 2016-10-04 15:02:44 -05:00
mbed_interface.c Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_interface.h Add tags to our code 2016-10-04 15:02:44 -05:00
mbed_lib.json [EFR32] Set default USB serial baudrate 2016-11-07 11:54:45 +01:00
mbed_mem_trace.c Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_mem_trace.h Add tags to our code 2016-10-04 15:02:44 -05:00
mbed_preprocessor.h Added mbed_preprocessor.h to collect common cpp definitions 2016-11-03 10:26:31 -05:00
mbed_retarget.cpp Fixed compiler warning in mbed_retarget.cpp 2017-04-05 20:58:23 -06:00
mbed_retarget.h Fix C declaration of dir functions and types 2017-03-16 16:13:44 +00:00
mbed_rtc_time.cpp Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_rtc_time.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_semihost_api.c Modify semihost_disabledebug() to support more interface FW revs 2017-03-31 13:33:55 -07:00
mbed_semihost_api.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_sleep.h Disable sleep when uVisor is in use 2017-04-10 11:40:04 +01:00
mbed_stats.c stats - Added stack stats api for individual threads 2016-11-07 19:15:44 -06:00
mbed_stats.h stats - Added doxygen documentation to stats functions 2016-11-07 19:15:44 -06:00
mbed_toolchain.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_wait_api.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_wait_api_no_rtos.c Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
mbed_wait_api_rtos.cpp Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
platform.h Updated includes of renamed platform header files 2017-03-01 16:45:55 -06:00
rtc_time.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
semihost_api.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
sleep.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
toolchain.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00
wait_api.h Renamed files in platform to match source names 2017-02-22 18:17:54 -06:00