that compiled perfectly fine enabling -Xlint just shows you warnings (they're not errors and won't effect the running of the program unless of course...
What exactly are you trying to do? Wielding items is a client side packet iirc and thus you shouldn't have to return anything just read the data from...