Suppressing the warnings is ugly but less ugly than explicitly specifying all the omitted elements in the array.