mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 11:05:24 +08:00
2011-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/media-path.c: Remove warnings.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user