How to suppress Printf related errors from QA-C Analyser?

0 votes
asked by
edited by

How to suppress Printf related errors from QA-C Analyzer?

1 Answer

0 votes
No avatar answered by (193k points)

There is an online help page created especially for this type of procedure. Access the official website and you will see exactly how it should be done for printf errors. A sample code looks like the one posted below:

/*
 *
 * Piece of code that has a fall through that must be suppressed
 *
 * QAC APPLY RELATIVE
 *
 */
      void jump( int location )
      {
        switch( location )
        {
            case 2:
            {
                printf("bye ");
            }
            /* fall through, QAC EXPECT 2003 */
            case 1:     
            {
                printf("bye ");
                break;
            }
            default:
            {
                printf("ERROR);
                break;
            }
        }

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...