Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6989702

sound native code compiler warnings

XMLWordPrintable

    • b126
    • generic
    • generic
    • Not verified

        Native code compiler warnings:

        Linux:

        /usr/bin/gcc -g -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DDEBUG -DLOGGING -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/javax.sound/jsoundalsa/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/share/native/common -I../../../../src/solaris/native/common -I../../../../src/share/native/javax/sound -I../../../../src/solaris/native/javax/sound -DX_PLATFORM=X_LINUX -DX_ARCH=X_I586 -DUSE_DAUDIO=TRUE -DUSE_PORTS=TRUE -DUSE_PLATFORM_MIDI_OUT=TRUE -DUSE_PLATFORM_MIDI_IN=TRUE -I../../../../src/share/native/com/sun/media/sound -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/javax.sound/jsoundalsa/obj_gO/PLATFORM_API_LinuxOS_ALSA_PCM.o ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c: In function 'DAUDIO_GetFormats':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c:157: warning: pointer targets in passing argument 2 of 'snd_pcm_hw_params_get_channels_min' differ in signedness
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c:163: warning: pointer targets in passing argument 2 of 'snd_pcm_hw_params_get_channels_max' differ in signedness
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c: In function 'setHWParams':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c:370: warning: pointer targets in passing argument 3 of 'snd_pcm_hw_params_set_period_time_near' differ in signedness
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c:384: warning: pointer targets in passing argument 3 of 'snd_pcm_hw_params_set_periods_near' differ in signedness
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c: In function 'setSWParams':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c:425: warning: 'snd_pcm_sw_params_set_xfer_align' is deprecated (declared at /usr/include/alsa/pcm.h:1104)
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c: In function 'DAUDIO_Open':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c:493: warning: pointer targets in passing argument 2 of 'snd_pcm_hw_params_get_periods' differ in signedness

        /usr/bin/gcc -g -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DDEBUG -DLOGGING -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/javax.sound/jsoundalsa/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/share/native/common -I../../../../src/solaris/native/common -I../../../../src/share/native/javax/sound -I../../../../src/solaris/native/javax/sound -DX_PLATFORM=X_LINUX -DX_ARCH=X_I586 -DUSE_DAUDIO=TRUE -DUSE_PORTS=TRUE -DUSE_PLATFORM_MIDI_OUT=TRUE -DUSE_PLATFORM_MIDI_IN=TRUE -I../../../../src/share/native/com/sun/media/sound -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/javax.sound/jsoundalsa/obj_gO/PLATFORM_API_LinuxOS_ALSA_Ports.o ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_Ports.c
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiUtils.c: In function 'openMidiDevice':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_MidiUtils.c:375: warning: 'deviceID' may be used uninitialized in this function
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_Ports.c: In function 'PORT_GetControls':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_Ports.c:383: warning: 'isPlayback' may be used uninitialized in this function
        one more warning:
        /usr/bin/gcc -g -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DDEBUG -DLOGGING -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-internal-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I../../../../build/linux-i586/tmp/sun/javax.sound/jsoundalsa/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/share/native/common -I../../../../src/solaris/native/common -I../../../../src/share/native/javax/sound -I../../../../src/solaris/native/javax/sound -DX_PLATFORM=X_LINUX -DX_ARCH=X_I586 -DUSE_DAUDIO=TRUE -DUSE_PORTS=TRUE -DUSE_PLATFORM_MIDI_OUT=TRUE -DUSE_PLATFORM_MIDI_IN=TRUE -I../../../../src/share/native/com/sun/media/sound -c -o ../../../../build/linux-i586/tmp/sun/javax.sound/jsoundalsa/obj_gO/PLATFORM_API_LinuxOS_ALSA_PCM.o ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_PCM.c
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c: In function 'getALSAVersion':
        ../../../../src/solaris/native/com/sun/media/sound/PLATFORM_API_LinuxOS_ALSA_CommonUtils.c:140: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result

        also a file opened in the getALSAVersion function is never closed

              amenkov Alex Menkov
              ohair Kelly Ohair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: