It could be forward head carriage and a loss of the cervical curve which is putting pressure on your clavicle and possibly skewing the motion of the entire shoulder, eventually causing it to click when it goes through extension. No amount of warmup exercises will fix this issue, you must learn to keep your hips and skull behind your shoulders when standing upright.