<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/mingetty/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/mingetty/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/mingetty/bugs/</id><updated>2009-06-24T10:12:58Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>warn_unused_result warnings</title><link href="https://sourceforge.net/p/mingetty/bugs/1/" rel="alternate"/><published>2009-06-24T10:12:58Z</published><updated>2009-06-24T10:12:58Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net2ebe9e341e119ed350c0206eb96e05578e07f7a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;To avoid warn_unused_result warnings you'd better use an 'int rc = ' construct&lt;br /&gt;
to store the return value of write(), chroot(), chdir() and nice().&lt;/p&gt;
&lt;p&gt;gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)&lt;/p&gt;
&lt;p&gt;---------&lt;br /&gt;
gcc -O2 -Wall -W -pipe -D_GNU_SOURCE   -c -o mingetty.o mingetty.c&lt;br /&gt;
mingetty.c: In function âopen_ttyâ:&lt;br /&gt;
mingetty.c:195: warning: ignoring return value of âwriteâ, declared with attribute warn_unused_result&lt;br /&gt;
mingetty.c: In function âmainâ:&lt;br /&gt;
mingetty.c:426: warning: ignoring return value of âchrootâ, declared with attribute warn_unused_result&lt;br /&gt;
mingetty.c:428: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result&lt;br /&gt;
mingetty.c:430: warning: ignoring return value of âniceâ, declared with attribute warn_unused_result&lt;br /&gt;
gcc   mingetty.o   -o mingetty&lt;br /&gt;
---------&lt;/p&gt;
&lt;p&gt;Peter&lt;br /&gt;
peter.thoemmes@gmx.de&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>