warnings

Posted by Gohan_TheDragonball on Wed 11 Oct 2006 12:32 PM — 5 posts, 23,430 views.

USA #0
hey, just tryin to clear up some stragglin errors:

gcc -c -O -g3 -Wall -DREQUESTS -DSMAUG14 -DTIMEFORMAT -DREGEX tables.c
tables.c: In function `spell_function':
tables.c:74: warning: cast to pointer from integer of different size
tables.c: In function `skill_function':
tables.c:91: warning: cast to pointer from integer of different size
tables.c: In function `spell_name':
tables.c:105: warning: cast to pointer from integer of different size
tables.c: In function `skill_name':
tables.c:122: warning: cast to pointer from integer of different size

they are all pointing to the following line(s), all the same thing


return (SPELL_FUN *) (fun_syms->value + fun_syms->section->vma);


this is a bfd section of code, i've always had this warning as far back as i can remember, so its nothing changed recently for those who like to ask that question constantly.
USA #1
BFD is obsolete for this purpose. You should really give some thought to upgrading to dlsym support for the sake of your sanity :)
USA #2
*snicker* or even downgrading to the original method of having the double set of tables.c entries which didn't produce that sort of issue. ;)
USA #3
Well upgrading would be easier. In all likelihood he no longer has the manual tables to use and those would be far more painful to put back.
USA #4
Sorry, guess I was just in a "mood" that day, but yeah, it probably would be easierto upgrade rather than try to retrofit it at this point, though it did work the old way just fine without those problems too. ;)