Changeset 1970

Show
Ignore:
Timestamp:
04/03/11 06:44:45 (10 years ago)
Author:
adi
Message:

Fix compiler warning

When the default branch in the switch-case statement is taken,
receive_mode would be uninitialised.

src/libieee1394/IsoHandlerManager.cpp:754:40: warning: 'receive_mode'
may be used uninitialized in this functio

Let's at least assign something to it.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/IsoHandlerManager.cpp

    r1943 r1970  
    752752        unsigned int page_size = getpagesize(); 
    753753 
    754         enum raw1394_iso_dma_recv_mode receive_mode; 
     754        enum raw1394_iso_dma_recv_mode receive_mode = 
     755                RAW1394_DMA_PACKET_PER_BUFFER; 
    755756        switch(receive_mode_setting) { 
    756757            case 0: