[Groonga-commit] groonga/groonga [master] suppress a warnings on MinGW gcc by initialize with NULL.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 11月 13日 (土) 19:21:55 JST


Kouhei Sutou	2010-11-13 10:21:55 +0000 (Sat, 13 Nov 2010)

  New Revision: 456a6891cbc9125670530d54f2005932e7128338

  Log:
    suppress a warnings on MinGW gcc by initialize with NULL.
    
      com.c:976: warning: redundant redeclaration of ‘grn_edges’
      com.h:244: warning: previous declaration of ‘grn_edges’ was here

  Modified files:
    lib/com.c

  Modified: lib/com.c (+2 -1)
===================================================================
--- lib/com.c    2010-11-13 09:20:09 +0000 (50d9d8b)
+++ lib/com.c    2010-11-13 10:21:55 +0000 (09233be)
@@ -973,7 +973,8 @@ exit :
   GRN_API_RETURN(ctx->rc);
 }
 
-grn_hash *grn_edges;
+
+grn_hash *grn_edges = NULL;
 void (*grn_dispatcher)(grn_ctx *ctx, grn_edge *edge);
 
 void




Groonga-commit メーリングリストの案内
Back to archive index