[Groonga-commit] groonga/groonga at 4cc0734 [master] Remove unused variables.

Back to archive index

susumu.yata null+****@clear*****
Wed Nov 6 13:44:27 JST 2013


susumu.yata	2013-11-06 13:44:27 +0900 (Wed, 06 Nov 2013)

  New Revision: 4cc07340882855715bac8f55923d376380a6b834
  https://github.com/groonga/groonga/commit/4cc07340882855715bac8f55923d376380a6b834

  Message:
    Remove unused variables.
    
    To avoid VC++ warning C4101.

  Modified files:
    lib/dat.cpp

  Modified: lib/dat.cpp (+3 -3)
===================================================================
--- lib/dat.cpp    2013-11-06 13:42:17 +0900 (6e6c7e1)
+++ lib/dat.cpp    2013-11-06 13:44:27 +0900 (2d335e1)
@@ -464,7 +464,7 @@ grn_dat_add(grn_ctx *ctx, grn_dat *dat, const void *key,
       *added = res ? 1 : 0;
     }
     return trie->get_key(key_pos).id();
-  } catch (const grn::dat::SizeError &ex) {
+  } catch (const grn::dat::SizeError &) {
     if (!grn_dat_rebuild_trie(ctx, dat)) {
       return GRN_ID_NIL;
     }
@@ -614,7 +614,7 @@ grn_dat_update_by_id(grn_ctx *ctx, grn_dat *dat, grn_id src_key_id,
       if (!trie->update(src_key_id, dest_key, dest_key_size)) {
         return GRN_INVALID_ARGUMENT;
       }
-    } catch (const grn::dat::SizeError &ex) {
+    } catch (const grn::dat::SizeError &) {
       if (!grn_dat_rebuild_trie(ctx, dat)) {
         return ctx->rc;
       }
@@ -649,7 +649,7 @@ grn_dat_update(grn_ctx *ctx, grn_dat *dat,
       if (!trie->update(src_key, src_key_size, dest_key, dest_key_size)) {
         return GRN_INVALID_ARGUMENT;
       }
-    } catch (const grn::dat::SizeError &ex) {
+    } catch (const grn::dat::SizeError &) {
       if (!grn_dat_rebuild_trie(ctx, dat)) {
         return ctx->rc;
       }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index