Use pragma GCC diagnostic push/pop

Note that push/pop is GCC 4.6 feature.
Use should_not raise_error to verify it don't raise error