GCC 4.5 compatibility fix: only use warning pragmas in gcc 4.7+
Authored by: klaussfreire 2013-03-13
Parent: [r13570]
Child: [r13572]