arguably the email was more work... <br><br>I know it&#39;s now a big deal, but I like compiling with pedantic and I&#39;m always hit with this. Although it&#39;s the *only* warning I see (though not very comprehensive coverage) in VTK. So good on all the VTK developers. Thanks.<br>
<br clear="all">-- Trevor<br><br>
<br><br><div class="gmail_quote">On 18 August 2012 03:29, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Fri, Aug 17, 2012 at 8:23 PM, John Drescher &lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt; wrote:<br>
&gt; On Fri, Aug 17, 2012 at 10:19 PM, Trevor Irons &lt;<a href="mailto:trevorirons@gmail.com">trevorirons@gmail.com</a>&gt; wrote:<br>
&gt;&gt; When I compile using gcc on pedantic I&#39;ve been bothered by a warning for<br>
&gt;&gt; years. Was hoping someone with commit access could spend about 12 seconds<br>
&gt;&gt; and fix this.<br>
&gt;&gt;<br>
&gt;&gt; The warning reads<br>
&gt;&gt; In file included from external/matplot/matplot.h:40:0,<br>
&gt;&gt;                  from<br>
&gt;&gt; /home/tirons/src/Merlin/include/snmrinversion1damp.h:45,<br>
&gt;&gt;                  from<br>
&gt;&gt; /home/tirons/src/Merlin/unittest/utsnmrinversion1dgmrsimul.cpp:40:<br>
&gt;&gt; /usr/local/include/vtk-6.0/vtkXYPlotActor.h:395:28: warning: comma at end of<br>
&gt;&gt; enumerator list [-pedantic]<br>
&gt;&gt;<br>
&gt;&gt; In vtkXYPlotActor.h line 395 there is an extra comma :<br>
&gt;&gt;<br>
&gt;&gt; enum Alignment {<br>
&gt;&gt;   AlignLeft = 0x1,<br>
&gt;&gt;   AlignRight = 0x2,<br>
&gt;&gt;   AlignHCenter = 0x4,<br>
&gt;&gt;   AlignTop = 0x10,<br>
&gt;&gt;   AlignBottom = 0x20,<br>
&gt;&gt;   AlignVCenter = 0x40,<br>
&gt;&gt;   AlignAxisLeft = 0x100,<br>
&gt;&gt;   AlignAxisRight = 0x200,<br>
&gt;&gt;   AlignAxisHCenter = 0x400,<br>
&gt;&gt;   AlignAxisTop = 0x1000,<br>
&gt;&gt;   AlignAxisBottom = 0x2000,<br>
&gt;&gt;   AlignAxisVCenter = 0x4000,         &lt;-- Extra comma right here<br>
&gt;&gt; };<br>
&gt;&gt;<br>
&gt;&gt; I would really appreciate it if someone with commit privileges could remove<br>
&gt;&gt; this.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Isn&#39;t that legal in c++? I intentionally make my enums that way..<br>
<br>
</div></div>It was illegal until C++11, though compilers have been lax about it.<br>
So, yes, the extra comma should be removed but I&#39;ve already<br>
spent more than 12 seconds just typing this email...<br>
<br>
Trailing commas in initializer lists have always been legal, though.<br>
<span class="HOEnZb"><font color="#888888"><br>
 - David<br>
</font></span></blockquote></div><br>