Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5351

return of void functions inconsistency between CVI 2013 and older

$
0
0

Hello,

 

I have discovered an inconsistency using CVI 2013 (SP2 or not) compared to CVI 2010 and CVI 8.5 (the versions I have).

 

I have written, by mistake, a code where I'm returning a value for a void function. CVI 2013 does not complain (but should) while other CVI versions complain (and that's OK).

 

Here is the code:

 

static void pouet(void)
{
	return;
}

static void hop(void)
{
	return pouet();
}

int main(void)
{
	hop();
	return 0;
}

 

Could this behaviour be fixed for the next CVI update ?

 

Thanks.

 

Frédéric Lochon.

 


Viewing all articles
Browse latest Browse all 5351

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>