Closed Bug 839295 Opened 12 years ago Closed 12 years ago

Firefox 18.0.2 compilation minor issue (ccsip_platform_udp.c:198:16: error: ‘addr_len’ may be used uninitialized in this function [-Werror=maybe-uninitialized])

Categories

(Core :: WebRTC, defect)

18 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 800401

People

(Reporter: u209627, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 Build ID: 20121128084830 Steps to reproduce: I compiled Firefox 18.0.2 Actual results: make[1]: Entering directory `/home/fraga/src/firefox/media/webrtc/signaling/signaling_sipcc' gcc -o src/sipcc/core/sipstack/ccsip_platform_udp.o -c -I../../../../dist/system_wrappers -include /home/fraga/src/mozilla/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DUSE_NSS=1 -DENABLE_ONE_CLICK_SIGNIN -DGTK_DISABLE_SINGLE_INCLUDES=1 -D_ISOC99_SOURCE=1 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1 -DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_PRINTING=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DSIP_OS_LINUX -D_GNU_SOURCE -DCPR_MEMORY_LITTLE_ENDIAN -DNO_SOCKET_POLLING -DUSE_TIMER_SELECT_BASED -DFULL_BUILD -DSTUBBED_OUT -DUSE_PRINTFLINUX -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I. -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/common/browser_logging -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/include -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/core/includes -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/cpr/include -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/core/common -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/core/sipstack/h -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/core/ccapp -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/core/sdp -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/core/gsm/h -I/home/fraga/src/mozilla/media/webrtc/signaling//./src/sipcc/plat/common -I/home/fraga/src/mozilla/media/webrtc/signaling//../../../media/mtransport -I/home/fraga/src/mozilla/media/webrtc/signaling//../../../dom/base -I/home/fraga/src/mozilla/media/webrtc/signaling//../trunk/third_party/libsrtp/srtp/include -I/home/fraga/src/mozilla/media/webrtc/signaling//../trunk/third_party/libsrtp/srtp/crypto/include -I../../../../dist/include -I/home/fraga/src/mozilla/media/webrtc/signaling//../trunk/third_party/libsrtp/config -fPIC -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body -Wno-unused -Wno-overlength-strings -Wcast-align -Wno-long-long -march=native -O3 -pipe -floop-interchange -floop-strip-mine -floop-block -fno-strict-aliasing -ffunction-sections -fdata-sections -pthread -pipe -DNDEBUG -DTRIMMED -g -march=native -O3 -mno-avx -pipe -floop-interchange -floop-strip-mine -floop-block -fomit-frame-pointer -I/home/fraga/src/firefox/dist/include/nspr -Werror -include ../../../../mozilla-config.h -DMOZILLA_CLIENT -MD -MF .deps/ccsip_platform_udp.o.pp /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c: In function ‘sip_platform_udp_channel_listen’: /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c:198:16: error: ‘addr_len’ may be used uninitialized in this function [-Werror=maybe-uninitialized] /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c: In function ‘sip_platform_udp_channel_create’: /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c:268:15: error: ‘addr_len’ may be used uninitialized in this function [-Werror=maybe-uninitialized] /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c: In function ‘sip_platform_udp_channel_sendto’: /home/fraga/src/mozilla/media/webrtc/signaling/src/sipcc/core/sipstack/ccsip_platform_udp.c:446:20: error: ‘addr_len’ may be used uninitialized in this function [-Werror=maybe-uninitialized] cc1: all warnings being treated as errors make[1]: *** [src/sipcc/core/sipstack/ccsip_platform_udp.o] Error 1 make[1]: Leaving directory `/home/fraga/src/firefox/media/webrtc/signaling/signaling_sipcc' make: *** [default] Error 2 Expected results: It should compile without errors.
Version: 17 Branch → 18 Branch
Component: Untriaged → Build Config
You shouldn't build with -Werror in your CXXFLAGS or with --enable-warnings-as-errors as a configure option.
Component: Build Config → WebRTC
Product: Firefox → Core
QA Contact: jsmith
(In reply to Mike Hommey [:glandium] from comment #1) > You shouldn't build with -Werror in your CXXFLAGS or with > --enable-warnings-as-errors as a configure option. Mike I didn't put this options. They are default on Firefox.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.