Changeset b907b479 in rtems for cpukit/libblock


Ignore:
Timestamp:
Feb 22, 2011, 3:11:06 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
a6d21a4
Parents:
027e40d
Message:

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

  • libblock/src/media-path.c: Remove warnings.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/media-path.c

    r027e40d rb907b479  
    3939
    4040  if (s != NULL) {
    41     int rv = snprintf(s, size, "%s/%s-%" PRIu32, prefix, name, major);
     41#ifndef NDEBUG
     42    int rv =
     43#endif
     44    snprintf(s, size, "%s/%s-%" PRIu32, prefix, name, major);
    4245    assert(rv < (int) size);
    4346  }
     
    7376
    7477  if (s != NULL) {
    75     int rv = snprintf(s, size, "%s-%" PRIu32, path, minor);
     78#ifndef NDEBUG
     79    int rv =
     80#endif
     81    snprintf(s, size, "%s-%" PRIu32, path, minor);
    7682    assert(rv < (int) size);
    7783  }
Note: See TracChangeset for help on using the changeset viewer.