2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>

* libblock/src/media-path.c: Remove warnings.
This commit is contained in:
Ralf Corsepius
2011-02-22 15:11:06 +00:00
parent 027e40dc03
commit b907b479e5
2 changed files with 12 additions and 2 deletions
+4
View File
@@ -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,
+8 -2
View File
@@ -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);
}