[previous] 3105 [next] [S] A #pragma block has not been closed with a #pragma '%s'.
Syntax errors

In QA·C, it is possible to specify a pair of #pragma statements which can be used to enclose a block of statements to be ignored in the parsing process (-skippragma option, Analyser personality). This message is generated when a #pragma block has been specified and the source code contains the start of a block which is never closed. For example:


/*PRQA S 2017,3211,3408 ++*/
/**************************************/
/* OPTIONS: -spragma AAAA,BBBB        */
/**************************************/

void foo(void)
{
#pragma AAAA

THIS CODE IS IGNORED

AND THE PRAGMA BLOCK IS NEVER TERMINATED

   return;
}                                                     /* Message 3105 */

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents