<p>In <a href="https://github.com/mlpack/mlpack/pull/721#discussion_r70434498">src/mlpack/methods/ann/layer/one_hot_layer.hpp</a>:</p>
<pre style='color:#555'>&gt; @@ -58,7 +58,7 @@ class OneHotLayer
&gt;      output = inputActivations;
&gt;      output.zeros();
&gt;  
&gt; -    arma::uword maxIndex;
&gt; +    arma::uword maxIndex = 0;
</pre>
<p>Yeah; I agree that the -Wuninitialized is erroneous in this case, but I am not sure there is any other way to stop that warning from appearing here other than initializing the index to 0.  Do you know any other ways?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/721/files/640f3a7859ea8d400bc6fed6b4395c2291ba0259..ee2a8a1461a33edd830747dccde117ac2cfb12b7#r70434498">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFHDhcvg9okyWq553tjOLNLUcBDLHks5qU5LwgaJpZM4JKXF9">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKakJV8XpbJRgjHmo-ML9CodXVv7ks5qU5LwgaJpZM4JKXF9.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/pull/721/files/640f3a7859ea8d400bc6fed6b4395c2291ba0259..ee2a8a1461a33edd830747dccde117ac2cfb12b7#r70434498"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>