Suppress warning on gcc < 4.6.

#pragma GCC diagnostic push and #pragma GCC diagnostic pop were added in gcc 4.6.