Ignore:
Timestamp:
Jan 24, 2017 5:41:05 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: dereferencing type-punned pointer, using uninitialized var.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/android_jni_dev.c

    r5426 r5544  
    545545    pj_status_t status = PJ_SUCCESS; 
    546546    int state = 0; 
    547     int buffSize, inputBuffSizePlay, inputBuffSizeRec; 
     547    int buffSize, inputBuffSizePlay = 0, inputBuffSizeRec = 0; 
    548548    int channelInCfg, channelOutCfg, sampleFormat; 
    549549    jmethodID constructor_method=0, bufsize_method = 0; 
     
    932932        if (stream->track) { 
    933933            jmethodID vol_method = 0; 
    934             int retval; 
     934            int retval = 0; 
    935935            float vol = *(int *)value; 
    936936             
Note: See TracChangeset for help on using the changeset viewer.