diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-22 15:11:06 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-02-22 15:11:06 +0000 |
commit | b907b479e53411ff31f1690c11194771947f51da (patch) | |
tree | 97b46d68d94211ba029c1ea4a638c3c05dc8bb45 /cpukit/libblock | |
parent | 2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-b907b479e53411ff31f1690c11194771947f51da.tar.bz2 |
2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/media-path.c: Remove warnings.
Diffstat (limited to 'cpukit/libblock')
-rw-r--r-- | cpukit/libblock/src/media-path.c | 10 |
1 files changed, 8 insertions, 2 deletions
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); } |