<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[typedef-warnings abstellen]]></title><description><![CDATA[<p>Hallo,</p>
<p>seitdem wir auf neueren Rechnern den gcc-4.3 benutzen, belöffelt der gcc uns mit der folgenden Warnung:</p>
<p>In file included from simulation.cpp:518:<br />
simulation.h:271: warning: ‘typedef’ was ignored in this declaration</p>
<p>In der simulation.h steht:</p>
<pre><code class="language-cpp">[...]

namespace lpzrobots {

  class Simulation : public Base, [...]
  {
  public:

    typedef enum SimulationState { none, initialised, running, closed };

    [...]
  };
}
</code></pre>
<p>Zeile 9 entspricht Zeile 271.</p>
<p>Das geht durch ziemlich alle Dateien, auch bei vielen anderen typedefs.</p>
<p>Meine Fragen: Erstens, warum kommt überhaupt die Warnung? Und zweitens: Wie kann ich sie abstellen?</p>
<p>Vielen Dank für die Hilfe im Voraus,<br />
Frank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/245018/typedef-warnings-abstellen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 23:40:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/245018.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Jul 2009 06:24:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to typedef-warnings abstellen on Thu, 09 Jul 2009 06:25:49 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>seitdem wir auf neueren Rechnern den gcc-4.3 benutzen, belöffelt der gcc uns mit der folgenden Warnung:</p>
<p>In file included from simulation.cpp:518:<br />
simulation.h:271: warning: ‘typedef’ was ignored in this declaration</p>
<p>In der simulation.h steht:</p>
<pre><code class="language-cpp">[...]

namespace lpzrobots {

  class Simulation : public Base, [...]
  {
  public:

    typedef enum SimulationState { none, initialised, running, closed };

    [...]
  };
}
</code></pre>
<p>Zeile 9 entspricht Zeile 271.</p>
<p>Das geht durch ziemlich alle Dateien, auch bei vielen anderen typedefs.</p>
<p>Meine Fragen: Erstens, warum kommt überhaupt die Warnung? Und zweitens: Wie kann ich sie abstellen?</p>
<p>Vielen Dank für die Hilfe im Voraus,<br />
Frank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1739492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1739492</guid><dc:creator><![CDATA[FrankGTL]]></dc:creator><pubDate>Thu, 09 Jul 2009 06:25:49 GMT</pubDate></item><item><title><![CDATA[Reply to typedef-warnings abstellen on Thu, 09 Jul 2009 06:36:49 GMT]]></title><description><![CDATA[<blockquote>
<pre><code class="language-cpp">typedef enum SimulationState { none, initialised, running, closed };
</code></pre>
</blockquote>
<p>Ganz einfach: Da gehört auch kein <code>typedef</code> hin.</p>
<p>Dass die alte Version das so ohne Murren akzeptierte, wundert mich.</p>
<p>Gruß,<br />
SP</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1739497</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1739497</guid><dc:creator><![CDATA[Sebastian Pizer]]></dc:creator><pubDate>Thu, 09 Jul 2009 06:36:49 GMT</pubDate></item><item><title><![CDATA[Reply to typedef-warnings abstellen on Thu, 09 Jul 2009 07:04:14 GMT]]></title><description><![CDATA[<p>Das habe ich mir zwar schon denken können, wollte aber nochmal nachfragen.</p>
<p>Vielen Dank für die Hilfe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1739507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1739507</guid><dc:creator><![CDATA[FrankGTL]]></dc:creator><pubDate>Thu, 09 Jul 2009 07:04:14 GMT</pubDate></item></channel></rss>