diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-20 17:29:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-08-20 17:29:37 +0000 |
commit | 85bca3f2283baa0630b148d5c16612fcbb9f87e6 (patch) | |
tree | 8160883b76ac0462bababed6e337334894e59cce | |
parent | 2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-85bca3f2283baa0630b148d5c16612fcbb9f87e6.tar.bz2 |
2008-08-20 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/rtems/status-checks.h: Fixed integer conversion warning.
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/include/rtems/status-checks.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 47e5268fd2..049ca2c959 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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. diff --git a/cpukit/include/rtems/status-checks.h b/cpukit/include/rtems/status-checks.h index f62289fe4d..1face9488e 100644 --- a/cpukit/include/rtems/status-checks.h +++ b/cpukit/include/rtems/status-checks.h @@ -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 ); \ |