<!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">2012-08-10 17:52:34 +0900 (Fri, 10 Aug 2012)</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/fb385fd4551090be28ff8b9e9f2700565f86e7c6">fb385fd4551090be28ff8b9e9f2700565f86e7c6</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</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">clang: suppress warnings

db.c:3220:47: warning: variable 'key' is uninitialized when used here
      [-Wuninitialized]
      if (grn_table_add_v_inline(ctx, table1, key, key_size, &amp;value1, NULL)) {
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/groonga.h:1041:82: note: expanded from macro 'GRN_TABLE_EACH'
  ...(grn_array *)(table), (head), (tail), (id), (value), block);\
                                                          ^
../include/groonga.h:2734:7: note: expanded from macro 'GRN_ARRAY_EACH'
      block\
      ^~~~~
db.c:3171:12: note: initialize the variable 'key' to silence this warning
  void *key, *value1, *value2;
           ^
            = NULL

----

db.c:3221:24: warning: variable 'value2' is uninitialized when used here
      [-Wuninitialized]
        memcpy(value1, value2, value_size);
        ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../include/groonga.h:1035:72: note: expanded from macro 'GRN_TABLE_EACH'
      GRN_DAT_EACH((ctx), (grn_dat *)(table), (id), (key), (key_size), block);\
                                                                       ^
../include/groonga.h:2876:9: note: expanded from macro 'GRN_DAT_EACH'
        block\
        ^~~~~
db.c:3171:37: note: initialize the variable 'value2' to silence this warning
  void *key = NULL, *value1, *value2;
                                    ^
                                     = NULL</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/fb385fd4551090be28ff8b9e9f2700565f86e7c6#diff-0">lib/db.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"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: lib/db.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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3167">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3168">3168</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3169">3169</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3170">3170</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/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3171">3171</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/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3172">3172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3173">3173</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0L3174">3174</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3167">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3168">3168</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3169">3169</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3170">3170</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/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3171">3171</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3172">3172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3173">3173</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fb385fd4551090be28ff8b9e9f2700565f86e7c6#L0R3174">3174</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"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -3168,7 +3168,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_table_setoperation(grn_ctx *ctx, grn_obj *table1, grn_obj *table2, grn_obj *</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">                        grn_operator op)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_rc rc = GRN_SUCCESS;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  void *key, *value1, *value2;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  void *key = NULL, *value1 = NULL, *value2 = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint32_t value_size = 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint32_t key_size;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (table1 != res) {</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>