diff options
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libblock/src/media-path.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index f9607e2673..469cad2b6a 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org> + + * libblock/src/media-path.c: Remove warnings. + 2011-02-21 Joel Sherrill <joel.sherrill@oarcorp.com> * sapi/include/confdefs.h, diff --git a/cpukit/libblock/src/media-path.c b/cpukit/libblock/src/media-path.c index bf9b3d6970..1668145294 100644 --- a/cpukit/libblock/src/media-path.c +++ b/cpukit/libblock/src/media-path.c @@ -38,7 +38,10 @@ char *rtems_media_create_path( char *const s = malloc(size); if (s != NULL) { - int rv = snprintf(s, size, "%s/%s-%" PRIu32, prefix, name, major); +#ifndef NDEBUG + int rv = +#endif + snprintf(s, size, "%s/%s-%" PRIu32, prefix, name, major); assert(rv < (int) size); } @@ -72,7 +75,10 @@ char *rtems_media_append_minor( char *const s = malloc(size); if (s != NULL) { - int rv = snprintf(s, size, "%s-%" PRIu32, path, minor); +#ifndef NDEBUG + int rv = +#endif + snprintf(s, size, "%s-%" PRIu32, path, minor); assert(rv < (int) size); } |