Fixing warnings and removing call to vprintf in src/libruntime/target/stm32f4/*.

This commit is contained in:
Ruben Ayrapetyan
2014-07-14 19:39:22 +04:00
parent 97a2776996
commit bc83f77abe
2 changed files with 11 additions and 6 deletions
+3 -3
View File
@@ -20,9 +20,9 @@
* Handle failed assertion * Handle failed assertion
*/ */
void __noreturn void __noreturn
jerry_AssertFail(const char *assertion, /**< assertion condition string */ jerry_AssertFail(const char *assertion __unused, /**< assertion condition string */
const char *file, /**< file name */ const char *file __unused, /**< file name */
const uint32_t line) /** line */ const uint32_t line __unused) /** line */
{ {
__exit( -ERR_GENERAL); __exit( -ERR_GENERAL);
} /* jerry_AssertFail */ } /* jerry_AssertFail */
+7 -2
View File
@@ -36,7 +36,12 @@ __printf(const char *format, /**< format string */
va_start( args, format); va_start( args, format);
int ret = vprintf( format, args); /**
* TODO: Call internal vprintf implementation when it appears.
*/
int ret = 0;
JERRY_UNIMPLEMENTED();
va_end( args); va_end( args);
@@ -52,7 +57,7 @@ __putchar (int c)
/** exit - cause normal process termination */ /** exit - cause normal process termination */
void __noreturn void __noreturn
__exit (int status) __exit (int status __unused)
{ {
/** /**
* TODO: Blink LEDs? status -> binary -> LEDs? * TODO: Blink LEDs? status -> binary -> LEDs?