I'm not seeing any warning here, and u_short is a Windows-ism. uint16_t would be fine but I've never seen a warning, what system are you using?