<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2013-06-11 17:51:07 +0900 (Tue, 11 Jun 2013)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4">fd32766627c4f997b00873baf7babf3127d05fd4</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">clang: suppress warnings

Initialize variables explicitly.

    ii.c:3249:21: warning: variable 'dcn0' is used uninitialized whenever '||'
          condition is true [-Wsometimes-uninitialized]
                    if (!actual_db0_chunk_size ||
                        ^~~~~~~~~~~~~~~~~~~~~~
    ii.c:3252:56: note: uninitialized use occurs here
      ...fake_map2(ctx, ii-&gt;chunk, &amp;dw0, dc0, dcn0, actual_db0_chunk_size);
                                              ^~~~
    ii.c:3249:21: note: remove the '||' if its condition is always false
                    if (!actual_db0_chunk_size ||
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
    ii.c:3222:50: note: initialize the variable 'dcn0' to silence this warning
      uint32_t dps0, dps1, dls0, dls1, sps, scn, dcn0, dcn1;
                                                     ^
                                                      = 0
    ii.c:3261:27: warning: variable 'dcn1' is used uninitialized whenever '||'
          condition is true [-Wsometimes-uninitialized]
                          if (!actual_db1_chunk_size ||
                              ^~~~~~~~~~~~~~~~~~~~~~
    ii.c:3263:62: note: uninitialized use occurs here
      ...fake_map2(ctx, ii-&gt;chunk, &amp;dw1, dc1, dcn1, actual_db1_chunk_size);
                                              ^~~~
    ii.c:3261:27: note: remove the '||' if its condition is always false
                          if (!actual_db1_chunk_size ||
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
    ii.c:3222:56: note: initialize the variable 'dcn1' to silence this warning
      uint32_t dps0, dps1, dls0, dls1, sps, scn, dcn0, dcn1;
                                                           ^
                                                            = 0</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#diff-0">lib/ii.c</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: lib/ii.c (+1 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3218">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3219">3219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3220">3220</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3221">3221</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3222">3222</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3223">3223</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3224">3224</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0L3225">3225</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3218">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3219">3219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3220">3220</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3221">3221</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3222">3222</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3223">3223</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3224">3224</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fd32766627c4f997b00873baf7babf3127d05fd4#L0R3225">3225</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -3219,7 +3219,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">buffer_split(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_io_win sw, dw0, dw1;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   buffer *sb, *db0 = NULL, *db1 = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint8_t *sc = NULL, *dc0, *dc1;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  uint32_t dps0, dps1, dls0, dls1, sps, scn, dcn0, dcn1;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  uint32_t dps0, dps1, dls0, dls1, sps, scn, dcn0 = 0, dcn1 = 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (ii-&gt;header-&gt;binfo[seg] == NOT_ASSIGNED) { return GRN_FILE_CORRUPT; }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if ((rc = buffer_segment_reserve(ctx, ii, &amp;dls0, &amp;dps0, &amp;dls1, &amp;dps1))) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     return rc;</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>