The #pragma to disable the warning is only needed for gcc>4.6