[Groonga-commit] ranguba/rroonga at 621ec2b [master] suppress incompatible type conversion warning

Back to archive index

cosmo0920 null+****@clear*****
Mon Sep 29 02:23:02 JST 2014


cosmo0920	2014-09-29 02:23:02 +0900 (Mon, 29 Sep 2014)

  New Revision: 621ec2be5cecb34bf1cd7ebb3c49ca6480a24a5d
  https://github.com/ranguba/rroonga/commit/621ec2be5cecb34bf1cd7ebb3c49ca6480a24a5d

  Message:
    suppress incompatible type conversion warning
    
    warning: incompatible integer to pointer conversion
     assigning to 'const char *' from 'VALUE' (aka 'unsigned long')
      [-Wint-conversion]
      *name = rb_sym2str(rb_name);

  Modified files:
    ext/groonga/rb-grn.h

  Modified: ext/groonga/rb-grn.h (+2 -0)
===================================================================
--- ext/groonga/rb-grn.h    2014-09-29 02:05:45 +0900 (916f684)
+++ ext/groonga/rb-grn.h    2014-09-29 02:23:02 +0900 (f20e1f0)
@@ -42,6 +42,8 @@
 
 #ifndef HAVE_RB_SYM2STR
 #  define rb_sym2str(name) (rb_id2name(SYM2ID(name)))
+#else
+#  define rb_sym2str(name) (RSTRING_PTR(rb_sym2str(name)))
 #endif
 
 #ifndef HAVE_RB_TO_SYMBOL
-------------- next part --------------
HTML����������������������������...
Download 



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