mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/rtems/status-checks.h: Fixed integer conversion warning.
This commit is contained in:
1 parent
1dab7883a9
commit
85bca3f228
2 files changed
+6
-2
No files matched your search
@@ -1,3 +1,7 @@
|
||||
2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* include/rtems/status-checks.h: Fixed integer conversion warning.
|
||||
|
||||
2008-08-20 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Abort if stdbool.h is not c99 compliant.
|
||||
|
||||
@@ -83,7 +83,7 @@ extern "C" {
|
||||
#define CHECK_SCRV( sc, hint ) \
|
||||
if ((sc) != RTEMS_SUCCESSFUL) { \
|
||||
SYSLOG_ERROR( "SC = %i: %s\n", sc, hint ); \
|
||||
return -(sc); \
|
||||
return -((int) (sc)); \
|
||||
} else { \
|
||||
DEBUG_PRINT( "Ok: %s\n", hint ); \
|
||||
}
|
||||
@@ -149,7 +149,7 @@ extern "C" {
|
||||
#define CLEANUP_SCRV( sc, rv, label, hint ) \
|
||||
if ((sc) != RTEMS_SUCCESSFUL) { \
|
||||
SYSLOG_ERROR( "SC = %i: %s\n", sc, hint ); \
|
||||
rv = -(sc); \
|
||||
rv = -((int) (sc)); \
|
||||
goto label; \
|
||||
} else { \
|
||||
DEBUG_PRINT( "Ok: %s\n", hint ); \
|
||||
|
||||
Reference in new issue
Block a user