Stock Warning
#4

First one appears because its a never ending loop so you'll never get to return -1.

The second one is what compiler expects to get but it doesn't know ots an infinite loop.

To avoid, you'll need a limit (some max/min value) for your loop.
Reply


Messages In This Thread
Stock Warning - by Ilhan - 18.02.2016, 14:17
Re: Stock Warning - by zPain - 18.02.2016, 14:28
Re: Stock Warning - by Ilhan - 18.02.2016, 14:39
Re: Stock Warning - by Gammix - 18.02.2016, 14:43
Re: Stock Warning - by Ilhan - 18.02.2016, 14:51
Re: Stock Warning - by Nero_3D - 18.02.2016, 16:32
Re: Stock Warning - by Ilhan - 18.02.2016, 17:45

Forum Jump:


Users browsing this thread: 4 Guest(s)