Message The pragma <name> cannot be used inside a function block. Description This #pragma directive is only permitted at file scope, outside of all function definitions. User Action Move the directive to file scope, preceding the function definition that is to be affected. To limit the pragma to just that particular function, sandwich the #pragma and the function definition between a pair of matching pragmas with the save and restore keywords.