The only warranty on any used gun would be that provided by the seller; the police department would not necessarily have serviced the guns before sale and would not provide any guarantee.
That being said, most police guns receive routine service by trained armorers and are in good shape functionally if not always in appearance. In general, as others have said, police trade-in guns are carried a lot, shot little, and are great bargains.
Jim