Changeset 2517


Ignore:
Timestamp:
Mar 17, 2009 11:19:48 AM (11 years ago)
Author:
bennylp
Message:

Fixed warnings about unchecked fgets() return value with gcc 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/auddemo.c

    r2514 r2517  
    246246    pjmedia_aud_param param; 
    247247    pjmedia_aud_stream *strm = NULL; 
    248     char line[10]; 
     248    char line[10], *dummy; 
    249249    pj_status_t status; 
    250250 
     
    288288 
    289289    PJ_LOG(3,(THIS_FILE, "Recording started, press ENTER to stop")); 
    290     fgets(line, sizeof(line), stdin); 
     290    dummy = fgets(line, sizeof(line), stdin); 
    291291 
    292292on_return: 
     
    314314    pjmedia_aud_param param; 
    315315    pjmedia_aud_stream *strm = NULL; 
    316     char line[10]; 
     316    char line[10], *dummy; 
    317317    pj_status_t status; 
    318318 
     
    355355 
    356356    PJ_LOG(3,(THIS_FILE, "Playback started, press ENTER to stop")); 
    357     fgets(line, sizeof(line), stdin); 
     357    dummy = fgets(line, sizeof(line), stdin); 
    358358 
    359359on_return: 
Note: See TracChangeset for help on using the changeset viewer.