Changeset 519 for trunk


Ignore:
Timestamp:
Aug 27, 2018, 10:49:51 PM (6 years ago)
Author:
viala@…
Message:

fat/boot_fat32 use unused attribute

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot_fat32.c

    r474 r519  
    4848 * @ returns the field offset.                                              *
    4949 ****************************************************************************/
    50 static inline int get_offset(int offset, int size)
    51 {
    52     if( size + 1 ) return offset;
    53 
     50static inline
     51int get_offset(
     52    int offset,
     53    int size __attribute__ ((unused)))
     54{
     55    return offset;
    5456} // get_offset()
    5557
     
    6365 * @ returns the field length.                                              *
    6466 ****************************************************************************/
    65 static inline int get_size(int offset, int size)
    66 {
    67     if( offset + 1 ) return size;
    68 
     67static inline
     68int get_size(
     69    int offset __attribute__ ((unused)),
     70    int size)
     71{
     72    return size;
    6973} // get_size()
    7074
  • trunk/kernel/fs/fatfs.c

    r492 r519  
    5555//////////////////////////////////////////////////////////////////////////////////////////
    5656
    57 static inline int get_length( int offset , int length ) { if( offset + 1 ) return length; }
    58 
    59 static inline int get_offset( int offset , int length ) { if( length + 1 ) return offset; }
    60 
     57static inline
     58int get_length(
     59    int offset __attribute__((unused) ),
     60    int length)
     61{
     62    return length;
     63}
     64
     65static inline
     66int get_offset(
     67    int offset,
     68    int length __attribute__((unused)) )
     69{
     70    return offset;
     71}
    6172
    6273//////////////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.