<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=6925&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-04-29T17:36:01+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=6925&amp;mode</id>
<entry>
<author><name><![CDATA[xor]]></name></author>
<updated>2014-04-29T17:36:01+01:00</updated>
<published>2014-04-29T17:36:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6925&amp;p=79647#p79647</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6925&amp;p=79647#p79647"/>
<title type="html"><![CDATA[Re: Funkcja main ktora ma nie zwracać nic (noreturn)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6925&amp;p=79647#p79647"><![CDATA[
Byli już tacy co sobie nad tym łamali głowę: <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=60775"  class="postlink">http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=viewtopic&amp;t=60775</a>. Jeden pan nawet o tym napisał w swojej książce: <a href="http://books.google.pl/books?id=aUNjAgAAQBAJ&amp;pg=PA101&amp;lpg=PA101&amp;dq=__attribute__%28%28OS_main%29%29&amp;source=bl&amp;ots=J5BnygY0J2&amp;sig=EzqE5Dez3-BeRsQCY-jTzyjZ1CY&amp;hl=pl&amp;sa=X&amp;ei=W9NfU9T-EYqoyAO28oG4Dw&amp;ved=0CHUQ6AEwCA#v=onepage&amp;q=__attribute__%28%28OS_main%29%29&amp;f=false"  class="postlink">http://books.google.pl/books?id=aUNjAgAAQBAJ&amp;pg=PA101&amp;lpg=PA101&amp;dq=__attribute__%28%28OS_main%29%29&amp;source=bl&amp;ots=J5BnygY0J2&amp;sig=EzqE5Dez3-BeRsQCY-jTzyjZ1CY&amp;hl=pl&amp;sa=X&amp;ei=W9NfU9T-EYqoyAO28oG4Dw&amp;ved=0CHUQ6AEwCA#v=onepage&amp;q=__attribute__%28%28OS_main%29%29&amp;f=false</a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1774">xor</a> — 29 kwi 2014, o 17:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[karolek]]></name></author>
<updated>2014-04-29T17:26:00+01:00</updated>
<published>2014-04-29T17:26:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=6925&amp;p=79645#p79645</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=6925&amp;p=79645#p79645"/>
<title type="html"><![CDATA[Funkcja main ktora ma nie zwracać nic (noreturn)]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=6925&amp;p=79645#p79645"><![CDATA[
Mam funkcje main która ma nie zwracać nic , wiec wg dok. atmela zrobiłem tak <br />krótka notka <br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />In AVR GCC, a prototype for main() is required so you can declare the function attribute to specify that the main() function is of type &quot;noreturn&quot;. Then, define main() as normal. Note that the return type for main() is now void.<br /></div><br /><br />[syntax=c]int main(void) __attribute__((noreturn));<br /><br />int main(void)<br />{<br />}[/syntax]<br /><br />dla bardziej dociekliwych <strong><span style="color: #0000BF">void</span></strong> nie zmienia postać rzeczy <br /><br />[syntax=c]void main(void) __attribute__((noreturn));<br /><br />void main(void)<br />{<br />}[/syntax]<br /><br />a w odpowiedzi dostaje takie ostrzeżenie  jak sie pozbyć tego przecież robię wszystko wg. dokumentacji ?<br />[syntax=c]&lt;built-in&gt;:0:0: warning: function declared 'noreturn' has a 'return' statement &#91;enabled by default&#93;<br />&lt;built-in&gt;:0:0: warning: 'noreturn' function does return &#91;enabled by default&#93;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2535">karolek</a> — 29 kwi 2014, o 17:26</p><hr />
]]></content>
</entry>
</feed>