From b907b479e53411ff31f1690c11194771947f51da Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 22 Feb 2011 15:11:06 +0000 Subject: =?UTF-8?q?2011-02-22=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libblock/src/media-path.c: Remove warnings. --- cpukit/ChangeLog | 4 ++++ cpukit/libblock/src/media-path.c | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'cpukit') 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 + + * libblock/src/media-path.c: Remove warnings. + 2011-02-21 Joel Sherrill * 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); } -- cgit v1.2.3