Changeset 507 for trunk


Ignore:
Timestamp:
Aug 25, 2018, 6:30:16 PM (6 years ago)
Author:
viala@…
Message:

[soclib_nic] Missing default case fixed by adding an assert.

hal/tsar_mips32/drivers/soclib_nic.c: In function 'soclib_nic_cmd':
hal/tsar_mips32/drivers/soclib_nic.c:121:5: warning:

switch missing default case [-Wswitch-default]

switch( cmd )
~

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/drivers/soclib_nic.c

    r506 r507  
    271271        }
    272272        break;  // end READABLE
     273        default: {
     274            assert( false, "Unknown command <%x>\n", cmd );
     275        }
    273276    }
    274277} // end soclib_nic_cmd()
Note: See TracChangeset for help on using the changeset viewer.