[SERVER-18219] "control reaches end of non-void function" errors in GCC with WCE retry loop Created: 27/Apr/15 Updated: 08/Jan/16 Resolved: 28/Apr/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.9, 3.1.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Adam Midvidy | Assignee: | Adam Midvidy |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Completed: | |||||||||
| Steps To Reproduce: | Scons invocation: scons -j24 CC=gcc-5 CXX=g++-5 --cache --dbg=on --opt=off --cache-dir=/media/amidvidy/scons_cache/cache --ssl CCFLAGS="-fuse-ld=gold -fdiagnostics-color=always" mongod |
||||||||
| Sprint: | Platform 3 05/15/15 | ||||||||
| Participants: | |||||||||
| Description |
|
When the entire function is wrapped in a WCE retry-loop GCC doesn't deduce that a return statement will be reached. Error:
Apparently this was happening with gcc 4.9 as well according to spencer. Toolchain: gcc 5.1.0 obtained from ubuntu-toolchain-test ppa
Note that this only happens on debug builds. |
| Comments |
| Comment by Githook User [ 08/Jan/16 ] |
|
Author: {u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}Message: |
| Comment by Githook User [ 28/Apr/15 ] |
|
Author: {u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}Message: |