cht電腦資訊gcin已解決問題
adm Find login register

gcin-setup-tab.c 有 64bit-portability-issue

swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
1subject: gcin-setup-tab.c 有 64bit-portability-issuePromote 0 Bookmark 02009-07-03quote  

問題就出在這一句

gcin-setup-tab.c:1080: warning: assignment makes pointer from integer without a cast

請問該如何改?可以避免此問題呢?

謝謝

eliu

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02009-07-03quote  

   selected_filename = gtk_file_selection_get_filename (GTK_FILE_CHOOSER(file_selector));

是這一行嗎?看不出哪裡有問題。這個 function GTK 2.4 以後就有。應該不可能在很舊的 GTK compile ?

edited: 1
caleb
joined: 2007-09-22
posted: 630
promoted: 134
bookmarked: 90
3subject: Promote 0 Bookmark 02009-07-04quote  

請使用這個 patch:

http://hyperrate.com/thread.php?tid=12034

這樣看來 gcin 裡一些太舊的 GTK+ codes 可以考慮清掉了,因為 gcin-setup 已全面改用  gtk_file_chooser 取代過舊的 gtk_file_selection

Update: 貼完才想起來,這個 patch 早就提交了。劉老大「好像」也已經 apply patch 了。

在這裡:http://hyperrate.com/thread.php?tid=11380

edited: 2
swyear
joined: 2007-10-04
posted: 127
promoted: 4
bookmarked: 0
4subject: Promote 0 Bookmark 02009-07-04quote  

感謝兩位

用了 sync_gcin-setup.diff 後已經順利編譯

主要是 openSUSE Build Service  對 64-bit-portability-issue 敏感

其實只是 warning,在自己機器上是可以 pass  的

cht電腦資訊gcin已解決問題
adm Find login register
views:9327