Unfortunately, the way that the Arduino IDE drives gcc suppresses the warning messages that gcc can generate for that code.