macをMavericksにアップデートしたためプログラムの再インストールを行っているのですが、mecab-pythonをbuildしようとすると
explicitly assigning a variable of type
'void *' to itself [-Wself-assign]
という警告が計4つ出てきて(4 warnings generated)、完了できません
何が問題なのか分かる方いらっしゃいましたら、解説を御願いします。
当方mecab単体での起動は成功し、pythonはver.2.7.5です
同じような警告が出るけど、/build/lib.macosx-10.9-intel-2.7 に _MeCab.so が出来ていたのでかまわずにインストールしたら、test.pyでMeCab使えましたけど。
私のところでビルド時に出てたWarningを貼っておきます。
Pythonのバージョンは同じく2.7.5で行っています。
MeCab_wrap.cxx:2375:23: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
MeCab_wrap.cxx:2378:23: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
MeCab_wrap.cxx:2900:9: warning: variable 'res' is used uninitialized whenever 'if' condition is true
[-Wsometimes-uninitialized]
if (PyType_Ready(tp) < 0)
^~~~~~~~~~~~~~~~~~~~
MeCab_wrap.cxx:2924:10: note: uninitialized use occurs here
return res;
^~~
MeCab_wrap.cxx:2900:5: note: remove the 'if' if its condition is always false
if (PyType_Ready(tp) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~
MeCab_wrap.cxx:2881:10: note: initialize the variable 'res' to silence this warning
int res;
^
= 0
MeCab_wrap.cxx:7811:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
clientdata = clientdata;
~~~~~~~~~~ ^ ~~~~~~~~~~
4 warnings generated.
MeCab_wrap.cxx:2375:23: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
MeCab_wrap.cxx:2378:23: warning: explicitly assigning a variable of type 'int' to itself [-Wself-assign]
res = SWIG_AddCast(res);
~~~ ^ ~~~
MeCab_wrap.cxx:2900:9: warning: variable 'res' is used uninitialized whenever 'if' condition is true
[-Wsometimes-uninitialized]
if (PyType_Ready(tp) < 0)
^~~~~~~~~~~~~~~~~~~~
MeCab_wrap.cxx:2924:10: note: uninitialized use occurs here
return res;
^~~
MeCab_wrap.cxx:2900:5: note: remove the 'if' if its condition is always false
if (PyType_Ready(tp) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~
MeCab_wrap.cxx:2881:10: note: initialize the variable 'res' to silence this warning
int res;
^
= 0
MeCab_wrap.cxx:7811:14: warning: explicitly assigning a variable of type 'void *' to itself [-Wself-assign]
clientdata = clientdata;
~~~~~~~~~~ ^ ~~~~~~~~~~
4 warnings generated.