Some GCC versions disallow #pragma inside function body.