r8019 - compile fails on OSX due to -Werror added in ADM_coreScriptQt

Started by nibbles, June 17, 2012, 03:16:20 AM

Previous topic - Next topic

nibbles

r8019 added -Werror in a CMakeLists.txt on line 27

This causes a build failure on OSX with this output:


cd /tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src && /usr/bin/clang++   -DADM_coreScriptQt_EXPORTS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DQT_SCRIPTTOOLS -Os -pipe -march=native -Xclang -target-feature -Xclang -aes -Qunused-arguments -fPIC -I/tmp/homebrew-avidemux3-2.6-lX50/buildCor/config -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_core/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreAudioFilter/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreAudioParser/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreAudio/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreAudioDevice/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreAudioEncoder/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreDemuxer/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreDemuxerMpeg/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreImage/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreMuxer/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreScript/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreUI/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreUtils/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreVideoEncoder/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreVideoFilter/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreVideoCodec/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreImageLoader/include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_coreJobs/include -I/tmp/homebrew-avidemux3-2.6-lX50/buildCor/ffmpeg/source -I/tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src -I/usr/local/Cellar/qt/4.8.2/include -F/usr/local/Cellar/qt/4.8.2/lib -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/ADM_coreScriptQt/src/../include -I/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux/common    -Werror -Wall -o CMakeFiles/ADM_coreScriptQt.dir/moc_AudioEncoder.cxx.o -c /tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src/moc_AudioEncoder.cxx
In file included from /tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src/moc_AudioEncoder.cxx:10:
In file included from /tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src/../../../avidemux_core/ADM_coreScriptQt/src/AudioEncoder.h:4:
In file included from /tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src/../../../avidemux_core/ADM_coreScriptQt/src/QtScriptConfigObject.h:5:
In file included from /tmp/homebrew-avidemux3-2.6-lX50/buildCor/ADM_coreScriptQt/src/../../../avidemux_core/ADM_coreScriptQt/src/QtScriptObject.h:9:
In file included from /tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux/common/ADM_editor/include/IEditor.h:11:
In file included from /tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux/common/ADM_editor/include/ADM_edActiveAudioTracks.h:19:
/tmp/homebrew-avidemux3-2.6-lX50/avidemux_core/../avidemux_core/ADM_core/include/BVector.h:231:13: error: unused variable 'pointOfStart'
      [-Werror,-Wunused-variable]
        int pointOfStart = 0;
            ^
1 error generated.


I'll patch around this for now until a change is made.  Thanks for your help.
nibbles