<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>&lt;p&gt;I spent most of my day working on my &lt;a href='http://cshare.sf.net/'&gt;CShare&lt;/a&gt; project.&lt;/p&gt;

  &lt;p&gt;Somewhere in the middle of the afternoon I&amp;#8217;ve started having a problem: &lt;span class=&quot;caps&quot;&gt;GCC&lt;/span&gt; keeps saying to me that a variable is unused. The code with the problem follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;gint cshare_send(gchar *path, GIOChannel *channel) {
    gint ok = 0;
    struct stat file_info;
    (...)

    if(!access(path, R_OK)) {
        /* path is a file */
        if(g_file_test(path, G_FILE_TEST_IS_REGULAR)) {struct stat file_info;
            g_stat(path, &amp;amp;amp;file_info);
            ok = cshare_send_file(path, file_info.st_size, channel);
        }
       (...)&lt;/code&gt;&lt;/pre&gt;

  &lt;p&gt;The variable unused was &lt;strong&gt;file_info&lt;/strong&gt;. I needed almost 1 hour to figure out the problem&amp;#8230; Shame on me&amp;#8230; Maybe you can do best :)&lt;/p&gt;</body>
  <excerpt nil="true"></excerpt>
  <id type="integer">6</id>
  <permalink>gcc-sucks</permalink>
  <published-at type="datetime">2007-03-26T12:20:00-07:00</published-at>
  <title>GCC sucks</title>
</post>
