<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Emmer Inc &#187; warning</title>
	<atom:link href="http://blog.emmerinc.be/index.php/tag/warning/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.emmerinc.be</link>
	<description>Tales from a .NET developer who's making the jump to the iPhone &#38; App Store wonderland.</description>
	<lastBuildDate>Mon, 06 Sep 2010 19:43:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Control reaches end of non-void function</title>
		<link>http://blog.emmerinc.be/index.php/2009/03/01/control-reaches-end-of-non-void-function/</link>
		<comments>http://blog.emmerinc.be/index.php/2009/03/01/control-reaches-end-of-non-void-function/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 19:55:11 +0000</pubDate>
		<dc:creator>Yannick Compernol</dc:creator>
				<category><![CDATA[Xcode]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://blog.emmerinc.be/?p=82</guid>
		<description><![CDATA[Lately I&#8217;ve been getting a &#8220;control reaches end of non-void function&#8221; warning when compiling. Although it didn&#8217;t make any sense since I was not returning any value and the function had a return type of void, the code ran fine too.  A few days later it hit me, I had made a typo in [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been getting a &#8220;control reaches end of non-void function&#8221; warning when compiling. Although it didn&#8217;t make any sense since I was not returning any value and the function had a return type of void, the code ran fine too.  A few days later it hit me, I had made a typo in the return type.</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #002200;">-</span> <span style="color: #002200;">&#40;</span><span style="color: #a61390;">void</span><span style="color: #002200;">*</span><span style="color: #002200;">&#41;</span>load <span style="color: #002200;">&#123;</span>
<span style="color: #002200;">&#125;</span></pre></div></div>

<p>Lesson of the day: a return type of (void*) does the job, but (void) does it better.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.emmerinc.be/index.php/2009/03/01/control-reaches-end-of-non-void-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
