pixelsandcandy / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Build failed when compliling with -we4715 #101

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set CL environment variable to
CL=-we4700 -we4715 -we4716 -we4002 -we4351 -we4805 -we4288 -we4553 /MP /Oy- 
/d2Zi+ /link /NXCOMPAT
2. compile library

What is the expected output? What do you see instead?
Compilation fails:
 cl -c -nologo -Zm200 -Zc:wchar_t -FS -ZI -MDd -D_HAS_EXCEPTIONS=0 -GR -W3 -w34100 -w34189 /Fddebug\poly2tri.pdb
 -DUNICODE -DWIN32 -DQT_NO_EXCEPTIONS -I"e:/work/s-keeper/5.1/extsdk\openssl\include" -I"E:\Work\s-keeper\5.1\extsdk\qt\5
 .4.0\qtbase\mkspecs\win32-msvc2013" -Fo.obj\debug\ @C:\Users\a-bataev\AppData\Local\Temp\nm9E87.tmp
 shapes.cpp
 e:\work\s-keeper\5.1\extsdk\qt\5.4.0\qtlocation\src\3rdparty\poly2tri\common\shapes.cpp(163) : error C4715: 'p2t::Triang
 le::Index' : not all control paths return a value
 e:\work\s-keeper\5.1\extsdk\qt\5.4.0\qtlocation\src\3rdparty\poly2tri\common\shapes.cpp(222) : error C4715: 'p2t::Triang
 le::PointCW' : not all control paths return a value
 e:\work\s-keeper\5.1\extsdk\qt\5.4.0\qtlocation\src\3rdparty\poly2tri\common\shapes.cpp(235) : error C4715: 'p2t::Triang
 le::PointCCW' : not all control paths return a value
 NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\cl.EXE"' : return code '0x2'
 Stop.

What version of the product are you using? On what operating system?
Qt 5.4.0, MSVS2013, Win8.1

Please provide any additional information below.
https://bugreports.qt-project.org/browse/QTBUG-43568

Original issue reported on code.google.com by AndreyBa...@gmail.com on 28 Dec 2014 at 12:06

Attachments: